A few Day-to-Day life tricks of Linux.
IF we want to rename all the files with a part of the file we can do something following:
for file in $(ls); do nn=$(echo $file | awk -F'_' '{print($2)}'); mv $file $nn; done
No comments:
Post a Comment