There are multiple files in a directory that begin with prefix fgh, for example:
fgh
fghfilea fghfileb fghfilec
I want to rename a
My version of renaming mass files:
for i in *; do echo "mv $i $i" done | sed -e "s#from_pattern#to_pattern#g” > result1.sh sh result1.sh