How to rename multiple file names using unix command

时间:2015-05-08 09:54:58

标签: unix sed command

I have a list of file name like

#!/usr/bin/python
from flup.server.fcgi import WSGIServer
from yourapplication import app

if __name__ == '__main__':
    WSGIServer(app).run()

and i need to change that to different name without manually renaming the filename

Is there a sed command to perform that?

2 个答案:

答案 0 :(得分:2)

这可能适合你(GNU sed):

sed 's/.*/mv & new_&/e' file

答案 1 :(得分:0)

Try below

HTTP-HEAD
相关问题