Hello List,
This must be piece of cake for the UNIX gurus.
Trying to pass parameters to a simple awk script. Getting stuck.=20
First q., can we do that.=20
If yes I need to solve the foll. problem,
In a huge text file locate for abc/xyz and replace it with a supplied =
parameter value. This
For something as you have described, it is relatively simple:
the_val=$1 #set a script variable to the passed value
cat text_file | sed s.abc/xyz.$the_val.g new_file
mv new_file text_file
Keep it as simple as possible.
-Original Message-
From: Satish Iyer
thanks guys, was making one of the most stupid mistakes, kept
trying with the single quote instead of double quote after the sed. One of
those End of Day Mistakes...Anyway thanks again
[EMAIL PROTECTED] 06/06/01 06:30AM For something as you
have described, it is relatively simple:the_val=$1
1. sample data, and an example of what you are trying
to do would really help. At least, there isn't enough
here for me to be of any use. I don't really understand
the statement This paramter must of course, be able to
take on any value during the run of the program.
There's some other folks