Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
> automation help request
post Oct 27 2006, 12:35 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 11
Joined: 24-October 06
Member No.: 7,558

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)

Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 20th July 2018 - 07:03 PM