Sed - Ellie Quigley - Chap 4
4.6.8: Appending: The a command
Tried this many times, but would not work!
$sed '/^north /a\-->THE NORTH SALES DISTRICT HAS MOVED<--' datafile
always kept receiving error:
sed: -e expression #1, char 11: Extra characters after command
Neither does the insert command
4.6.9: Insert command
tried:
$sed '/eastern/i> --> NEW ENGLAND <--
> -----------------0--' datafile
0 Comments:
Post a Comment
<< Home