Sed replace doesn't work from shell script
- From: takarov2003@xxxxxxxxx
- Date: 25 Jul 2005 14:40:10 -0700
Please accept my apologies if this is not the right place to ask this
question, but it appears that google doesn't echo a group for sed.
my problem is that i have a file I wish to edit on pattern match,
replacing the matched line with another line.
from the command line I do:
teufel# sed '/#auth./c\
> auth replacement' /etc/syslog.conf > syslog.conf
This works fine from the command line. When I put these same lines in
a shell script, i get:
sed: command garbled: /#auth/c\
what am i missing here? substitution sed lines (one-liners) work fine
in the same script.
.
- Follow-Ups:
- Re: Sed replace doesn't work from shell script
- From: Chris F.A. Johnson
- Re: Sed replace doesn't work from shell script
- From: Bob Harris
- Re: Sed replace doesn't work from shell script
- Prev by Date: Re: File name size
- Next by Date: Re: Where are my other variables:
- Previous by thread: File name size
- Next by thread: Re: Sed replace doesn't work from shell script
- Index(es):
Relevant Pages
|