[BASH][HELP] Can someone help me write a script to rename files? - Programming On Unix

Users browsing this thread: 1 Guest(s)
neo1691
Members
Okay,
but find . -maxdepth 1 -iname "some regex" will only find the names of files matching the regex right? the only files in the folder are the 22 files, with nothing else. I think that I don't need to use the "find" command. An if loop with a condition that the file ending in .avi should suffice.

The hard part is for me how to extract the numbers from the string.


Messages In This Thread
RE: [BASH][HELP] Can someone help me write a script to rename files? - by neo1691 - 06-09-2014, 06:22 AM