for filename in ./*; do mv “./$filename” “./$(echo “$filename” | sed -e ‘s/_//g’)”; done
In this example, it removed the “_” from the filename. Alter the sed statement between s/ and //g to specify the pattern.
for filename in ./*; do mv “./$filename” “./$(echo “$filename” | sed -e ‘s/_//g’)”; done
In this example, it removed the “_” from the filename. Alter the sed statement between s/ and //g to specify the pattern.