View Single Post
  #3  
Old September 30th, 2002, 04:11 AM
couzteau's Avatar
couzteau couzteau is offline
Registered User
 
Join Date: Nov 2001
Location: germany
Posts: 102
couzteau is on a distinguished road
here is a script i wrote to kill blanks and remove some naughty chars:
Quote:
#!/bin/sh
{ for file in *; do \
NEW=`echo $file | sed 's/ /_/g'`;
NEW=`echo $NEW | sed 's/#26E5D//g'`;
NEW=`echo $NEW | sed 's/#26E5E//g'`;
NEW=`echo $NEW | sed 's/#250E9//g'`;
NEW=`echo $NEW | sed 's/#250E8//g'`;
NEW=`echo $NEW | sed 's/#26E60//g'`;
echo "mv -f $file $NEW;"
mv -f "$file" $NEW;
done;
}
Reply With Quote