Speaking of sed scripts ;>
How can I pass a shell variable into a sed script pattern space?
I've seen two (2) means documented elsewhere; but, I cannot get them to
work in Dachstein-CD:
sed -n '/'"$var"'/p' file
sed -n '/$(var)/p' file
Yes, I've found that I can do it this way; but, I'd prefer a single
step:
regx="/$var/p"
sed -n $regx file
What do you think?
--
Best Regards,
mds
mds resource
888.250.3987
Dare to fix things before they break . . .
Our capacity for understanding is inversely proportional to how much we
think we know. The more I know, the more I know I don't know . . .
_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user