[svlug] Caps on my Cisco Networking CD
Seth David Schoen
schoen at uclink4.berkeley.edu
Fri Nov 6 16:00:11 PST 1998
Bevan Schroeder writes:
> If you want to actually rename the files (won't work on a readonly CD...)
> > bash
> $ for f in *; do mv -v $f `echo $f | tr '[:upper:]' '[:lower:]'`; done
> All these are from memory, and may be incorrect.
If you want to do this in a multi-level directory tree, "*" won't work.
The other problem is that you may have some trouble with the directory
structure (renaming directories "out from under yourself"), so that
subsequent references to those directories by your script will fail.
"find" is better suited than "for" to cases involving actual directory trees,
if you have a choice.
Seth David Schoen L&S '01 (undeclared) / schoen at uclink4.berkeley.edu
He said, "This is what the king who will reign over you will do." And they
said, "Nay, but we will have a king over us, that we also may be like all the
nations." (1 Sam 8) http://ishmael.geecs.org/~sigma/ http://www.loyalty.org/
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
More information about the svlug