TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:10363] Using sed and evironmental variables
Quoting Eric M. Hopper (hopper@omnifarious.mn.org):
> You could try:
>
> cat file | sed -e "s/FOO/$FOO/g"
>
> Of course, if $FOO contains any '/'s or '\'s you still have
> problems.
>
> Have fun (if at all possible),
No, the double-quotes do not work. If I use double-quotes then it does not
subsititue anything at all.
--
Bob Tanner <tanner@real-time.com> | Phone : (612)943-8700
http://www.real-time.com | Fax : (612)943-8500
Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9