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?
答案 0 :(得分:2)
这可能适合你(GNU sed):
sed 's/.*/mv & new_&/e' file
答案 1 :(得分:0)
Try below
HTTP-HEAD