< BACK TO BLOG

rename all files with regex

Published Sun Feb 21 2021



for i in dir/*
do
mv "$i" "echo $i | sed 's/whatever//'"
done



Subscribe to my Newsletter

Get the latest posts delivered right to your inbox