Re: I want your mods!
ls */*.tga */*.rgb | awk '{print "mv " $1 " " tolower($1);}' | csh
# If you get a bunch of "file does not exist" messages, make the directories.
awk '{fout = ARGV[ARGIND] "_fixed";} {pmode = 1;} /\.rgb/ || /\.tga/{print tolower($0) > fout; pmode = 0;} (pmode == 1){print $0 > fout;}' *.dm
ls *_fixed | awk '{print "mv " $1 " " substr($1,1,length($1)-6);}' | csh
# Try that.
# Er.... back up your mods directory first.
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
|