How can I rename files from a list in bash?

Posted by GeoffreyF67 on Stack Overflow See other posts from Stack Overflow or by GeoffreyF67
Published on 2010-05-23T23:19:20Z Indexed on 2010/05/23 23:41 UTC
Read the original article Hit count: 304

Filed under:
|
|

I have a file that contains filenames like this:

my_cool_file.xxx
my_cool_file2.xxx
my_cool_file3.xxx

I have a folder that has:

some_file.xxx
some_file2.xxx
some_file3.xxx

I would like to have a bash script to take one line from the filename file and rename one file in the folder.

Is there a way to do this?

© Stack Overflow or respective owner

Related posts about bash

Related posts about rename