Hi,
I have a set of files stored in a single directory that I use to set parameters for a physics code, and I would like to streamline the process of updating them all when I change a parameter. For instance, if the files are called A2000p300ini, A2000p300sub, A2000p300run, and the text in each file includes several instances of the parameter '2000', I would like to be able to use a single script to create a new set of files A1500p300ini, A1500p300sub, A1500p300run in which every instance of '2000' has been replaced by '1500'.
I can see that I could use sed to change the contents and names of the files one at a time,
sed -e 's/2000/1500/g' A2000p300run > A1500p300run
but I was hoping to get it all done in one foul swoop to everything in the directory, and my scripting skills are on the basic side. Suggestions welcomed.
Chris