.abc
to .123
, use one of the following: for i in *.abc; do mv $i `echo $i|sed 's/.abc$/.123$/'`; done
for i in *; do mv $i `basename $i .abc`.123; done
The following bash one-liners convert filenames to lowercase:
for f in `find *`; do mv "$f" "`echo "$f" | tr A-Z a-z`"; done
for f in `find . -type f -name "*[A-Z]*"`; do mv "$f" "`echo "$f" | tr A-Z a-z`"; done
1 comment:
Merry Christmas!!!
Post a Comment