Re: skip first line using sed
From: William Park (opengeometry_at_yahoo.ca)
Date: 07/26/05
- Next message: Andrew Smallshaw: "Re: HOW TO: Cripting unix shell script"
- Previous message: oraustin_at_hotmail.com: "skip first line using sed"
- In reply to: oraustin_at_hotmail.com: "skip first line using sed"
- Next in thread: John W. Krahn: "Re: skip first line using sed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 26 Jul 2005 13:36:56 -0400
oraustin@hotmail.com wrote:
> First thanks for help with my other posts - sed skills progressing
> slowly :)
> I'd like to delete all lines containtg the word "Network" except the
> first line in the file but all variations of the syntax I've tried
> won't work.
> Please can someone tell me how to correctly form this command.
sed '1n; /Network/d'
-- William Park <opengeometry@yahoo.ca>, Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html BashDiff: Super Bash shell http://freshmeat.net/projects/bashdiff/
- Next message: Andrew Smallshaw: "Re: HOW TO: Cripting unix shell script"
- Previous message: oraustin_at_hotmail.com: "skip first line using sed"
- In reply to: oraustin_at_hotmail.com: "skip first line using sed"
- Next in thread: John W. Krahn: "Re: skip first line using sed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|