I am using
ls | cut -c 5-
This does return a list of the file names in the format i want them, but doesn't actually perform the action. Please advise.
Select multiple files in a folder. To do so, press and hold down the CTRL key while you are clicking files. After you select the files, press F2. Type the new name, and then press ENTER.
You can press and hold the Ctrl key and then click each file to rename. Or you can choose the first file, press and hold the Shift key, and then click the last file to select a group.
Press CTRL + A to select all the files in the folder, then right-click and select Rename. Input your new file name, and press Enter. Each file in the folder will take the base file name, in this case, artwork, followed by a number in a sequence.
rename -n 's/.{5}(.*)/$1/' *
The -n
is for simulating; remove it to get the actual result.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With