View Single Post
  #8  
Old June 5th, 2007, 09:46 PM
DrPraetorious's Avatar

DrPraetorious DrPraetorious is offline
Major General
 
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
DrPraetorious is on a distinguished road
Default 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
Reply With Quote