batch rename files: (by hmLyons)
for f in *.txt; do mv ./"$f" "${f%txt}htm"; doneor
find . -name "*.txt" | while read for
do
mv ./"$f" "${f%txt}htm";
done
for file in *.htm ;
do mv $file `echo $file | sed 's/\(.*\.\)htm/\1html/'` ;
done
// 120201 // find file names, replace '!' or '|' with '_'
find | grep "[!|]" | while read line ; do mv "$line" "`echo "$line" | sed 's/[!|]/-/'`" ; done
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home