FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 07-11-2010, 10:31 AM
Patrick Burroughs
 
Default script to recursively convert filenames to uppercase

On Sun, Jul 11, 2010 at 03:14, F. Gr. <fgr@anche.no> wrote:
> Does anybody know a Perl or Bash script to do what I've written in the
> subject?

I believe this should do it:
find -depth -execdir sh -c 'mv {} $(echo {} | tr a-z A-Z)' ;

~celti
 
Old 07-11-2010, 10:37 AM
bardo
 
Default script to recursively convert filenames to uppercase

2010/7/11 Patrick Burroughs <celticmadman@gmail.com>:
> I believe this should do it:
> find -depth -execdir sh -c 'mv {} $(echo {} | tr a-z A-Z)' ;

Looks good, anyway s/he asked for files, so I'd add a '-type f' to the
command line.

C
 

Thread Tools




All times are GMT. The time now is 09:36 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org