Re: [OT] Changing the case of filenames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, Apr 29th 2005 at 08:51 -0500, quoth esm@xxxxxxxxx:

=>On Fri, Apr 29, 2005 at 09:39:27AM -0400, David Niemi wrote:
=>> I am running a fortran program which requires all input file names to be
=>> uppercase.  As things were originally done in Windo$e all the filenames
=>> are mixed case (with numbers).
=>
=>( for i in *; do mv "$i" "`echo $i | tr [a-z] [A-Z]`"; done )
=>

But why run the command inside of a subshell? That's all that parens do. 
If you need grouping (which you do not here) and you don't need to be in a 
subshell, then just use braces.

-- 
steveo at syslang dot net TMMP1 http://frambors.syslang.net/
Do you have neighbors who are not frambors?


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux