|
Rename a file if I don't know its exact original name?
Hi everyone,
I will be downloading a file every day with the name in this format
SCA20060303_17514_IN.TXT
And I need to rename it to
SCA20060303_IN.TXT
Where "20060303" is the current date, and the "_17514" part will always be a 5-digit number that I will NOT know beforehand. I just need to take it out.
I've always used the mv filename1 filename2 command to rename files but how can I do this if I don't know the exact original name of the file?
Thanks,
Ryan
|