a SED question

Patrick Hyland pjh at otter.hpl.hp.com
Thu Dec 8 04:40:05 AEST 1988


If you're willing to use '-f' rather than '-e' then, the following
sedscript does what you want:

#n
: noprint
s/^[A-Z]/&/
t print
n
b noprint
: print
p
n
s/^[ 	]/&/
t print
b noprint


							Patrick Hyland.



More information about the Comp.unix.questions mailing list