Quote:
|
Originally Posted by techieMoe Quote: |
Originally Posted by valan You could write up a bash function to do it  | That's what I was thinking. You might be able to string together several command-line operations into a shell script. |
Quote:
|
Originally Posted by UgoDeschamps There is a solution thou... its called bash command.  |
But again that's stupid no?
sorry to sound ironic mate but if it was that stupid wouldnt be the one giving the answer and not asking for it?
the answer is, No it's no dumb, stupid or strange... as Microsoft windows simply made a "nicer" version of "CP" It doesnt take a full page to write this. I'll explain the very simple algorith behind all this, and you'll be able to use it in no time
Code:
I have some files in a directory, called
prefix-file1, prefix-file2, etc
lets rename them to
file1.mp3, file2.mp3, etc
for file in prefix-* ;
do
mv "$file" "${file##prefix-}"
Fairly simple took 3 line of code, hopefully this isnt that hard and not to "stupid"