euglug.org

[Eug-lug] Subject: Copying, moving, whatever… using wildcards in destination : wc2fn.py

작성자

카테고리:



Allen BrownMon Nov 1 20:58:34 PST 2004

This looks like a cool program.  I haven't tried it yet.  But I
like the idea of being able to quickly change upper to lower
case.  And I admit that even tho I can do similar tasks in bash,
it would be nice to have a canned program since I tend to do it
fairly often.

For instance a one liner to change upper case to lower case in bash:
for upper in *; do lower=$(echo $upper | tr '[A-Z]' '[a-z]'); mv $upper $lower; done
--
Allen Brown
  work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
        allen_brown at agilent.com             abrown at peak.org
  Experience is the name everyone gives to their mistakes. ---Oscar Wilde