Wanted to rename all my files ending in .html.slim to .slim, in several subfolders.
for file in $(find . -iname ‘*.html.slim’)
do
mv $file $(echo “$file” | sed -r ‘s|.html.slim|.slim|g’)
done
Wanted to rename all my files ending in .html.slim to .slim, in several subfolders.
for file in $(find . -iname ‘*.html.slim’)
do
mv $file $(echo “$file” | sed -r ‘s|.html.slim|.slim|g’)
done