Simple question:
I want to do a simple sed edit on multiple files with one script. This can be done with the * command for input file names.
sed -e 's/STOP/ /g' *.lst
How do I output to a string of file names? I would like to output old file name with new added to the filename. ie input file name 1.lst > output file to be new1.lst
Another option would be to replace data in existing file - that would work as well.
I read that runsed could be used but I don't seem to have that application.
Any suggestions???
In the past I've just made a directory of all the files and created a file with the sed script on each line opening each file and directing it to the new file.
It's got to be easier.
Thank you.
I want to do a simple sed edit on multiple files with one script. This can be done with the * command for input file names.
sed -e 's/STOP/ /g' *.lst
How do I output to a string of file names? I would like to output old file name with new added to the filename. ie input file name 1.lst > output file to be new1.lst
Another option would be to replace data in existing file - that would work as well.
I read that runsed could be used but I don't seem to have that application.
Any suggestions???
In the past I've just made a directory of all the files and created a file with the sed script on each line opening each file and directing it to the new file.
It's got to be easier.
Thank you.