one more SED/AWK question

WU SHI-KUEI wu at spot.Colorado.EDU
Fri Dec 9 12:28:56 AEST 1988


In article <1076 at mtung.ATT.COM> slj at mtung.UUCP (S. Luke Jones) writes:
>I think I provided too much detail in my previous posting.  Let's assume
>we have a text file
>	blah blah SUDAN  blah
>	blah blah CZECHOSLOVAKIA  blah
>	blah blah MALAYSIA  blah
>	blah blah CANADA  blah
>	blah blah PERU  blah
>Suppose I want to grab everything between CZECHOSLOVAKIA to PERU, not
>counting PERU.
[ stuff deleted, including an awk command that does NOT work ]

Instead of sed or awk, just use *ed*!!!!

	echo "/CZECH/,/PERU/-p" | ed - foo
                            ^
Just a guest here.  In reality:
Carl Brandauer
uunet!nbires!bdaemon!carl



More information about the Comp.unix.questions mailing list