Re: skip first line using sed

From: William Park (opengeometry_at_yahoo.ca)
Date: 07/26/05


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/


Relevant Pages

  • Re: skip first line using sed
    ... > First thanks for help with my other posts - sed skills progressing ... > first line in the file but all variations of the syntax I've tried ...
    (comp.unix.shell)
  • Re: A new math usenet group
    ... Newsgroups: sci.math ... A new math usenet group ... variations in the complex division of integral and differential equations of ... may easily dump violating posts to be viewed as sort of the anti-to- ...
    (sci.math)
  • OpenReport + Current Record Only
    ... Ive read like 20 other posts regarding this issue & tried all the code ... variations provided in them although I cannot get the OpenReport ... For me it brings up a blank report each time. ... This next variation prompts me for the 'Form Field' parameter ...
    (microsoft.public.access.forms)
  • Re: Help
    ... have been blocking obscene posters one of which was using ... I have also begun to suspect that *I* don't see some original posts but my ... and some variations but have now deleted ... are there any other reliable spam trap addies, ...
    (uk.people.silversurfers)