Is there a way to run a sequence of commands on a list/number of files without having to run them manually on each file. I want to unzip each file, perform a find and replace on each file, and then rezip each file. The command sequence I want to employ is:
gunzip file.gz ; perl -pi -e 's/YSN/LYS/g' file ; gzip file
Each file I want to do this to has a similiar name as follows:
./aa#/prod/#/#/final.pdb.gz (for example: ./aa1/prod/50/0/final.pdb.gz)
Thanks.
