Quote:
|
Originally Posted by vino
Your expression is not valid. sed requires an expression of the format
Code:
"s/pattern/replacement/global_flag"
You have "s/pattern/global_flag". Also the single quote will disable parameter expansion.
|
No Vino...You are wrong.As you said in your previous post that we can take advantage of the pattern of "p1/w1" here....
So I just used it here... It works well for me..
Here, Every $each stands for "p1/w1" , "p2/w2" etc....
sed 's/'$each'/g' $2
So in effect, it will be
sed 's/p1/w1/g $2