Skip to content →

Mass Rename

This is just a little note to myself on how to rename files via the Linux command line. This sample will rename .php3 -> .php ….

ls -d *.php3 | sed ‘s/\(.*\).php3$/mv “&” “\1.php”/’ | sh

Published in Linux

%d bloggers like this: