Re: for loop in a shell script help



rac wrote:
Need help to create a shell script that will process any number of files
passed as arguments. The shell script will process the files and create
a new file in pr format. The new file name has the same name as the
original name with .pr added to the end of the name.

Example:

$ mypr wp abc doc

The above script mypr will create three new files; wp.pr,
abc.pr and doc.pr all in pr format.
<snip>
rac

Google for bash tutorial. I think you will find your requirements used as examples.

Peter F
.



Relevant Pages