[comp.unix.wizards] need help on unix

wangf@unixg.ubc.ca (Frank Wang) (06/11/91)

Is that possible to delete some lines from a file (the file is so large that  
it's impossible to use any editor) without evoking any editors?

Thanx in advance.

lance@mpd.tandem.com (Lance Hartmann) (06/11/91)

In article <1991Jun11.011430.22481@unixg.ubc.ca> wangf@unixg.ubc.ca (Frank Wang) writes:
>Is that possible to delete some lines from a file (the file is so large that  
>it's impossible to use any editor) without evoking any editors?
>
>Thanx in advance.

Try using "sed" or "awk".
-- 
Lance G. Hartmann - cs.utexas.edu!devnull!lance (Internet)
-------------------------------------------------------------------------------
DISCLAIMER:  All opinions/actions expressed herein reflect those of my VERY OWN
and shall NOT bear any reflection upon Tandem or anyone else for that matter.

jjp@necis.UUCP (Jeff Phillips) (06/13/91)

In article <1991Jun11.011430.22481@unixg.ubc.ca> wangf@unixg.ubc.ca (Frank Wang) writes:
>Is that possible to delete some lines from a file (the file is so large that  
>it's impossible to use any editor) without evoking any editors?
>
>Thanx in advance.
	Ever hear of the stream editor 'sed' that's been in standard
	distribution since way-back-nineteen-forgotten?
--
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ Jeffrey J. Phillips				UUCP: jjp@necis.nec.com   @@
@@ NEC Technologies, Inc.			PHONE: (508)635-6077	  @@
@@          "UNIX isn't a philosophy, it's a way of life" - anon          @@
@@ CASUAL DISCLAIMER: Opinions are mine - definitely not corporate policy @@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@