Sed and Bash; unterminated 's' command
Català
Dansk
Deutsch
Ελληνικά
English
Español
suomi
Français
Galego
magyar
Italiano
日本語
Nederlands
Polski
Português
Português Brasileiro
This message is part of the following thread:
the complete thread tree sorted by date
David Mandala at 2003-03-19 15:40
2003-03-19 15:40
BoBB at 2003-03-19 15:57
2003-03-19 15:57
Attachments:
Message as email
(text/plain)
Author:
David A. Sinck
Date:
2003-03-19 15:49
2003-03-19 15:49
-000
UTC
Subject:
Sed and Bash; unterminated 's' command
\_ SMTP quoth Liberty Young on 3/19/2003 08:01 as having spake thusly:
\_
\_ sed -ne "s|^foobar[[:blank:]]|foo bar|p;p" processed_file
I've heard it sed that perl might be a solution:
perl -pi.bak -e 's/^foobar /foo bar/' processed_file
YMMV
David