[ILUG] Pipe Trimming question ...

Kenn Humborg kenn at bluetree.ie
Thu Feb 22 18:45:45 GMT 2001


> >>>>> "KH" == Kenn Humborg <kenn at bluetree.ie> writes:
> 
>     KH> Something like (untested):
> 
>     KH> awk ' BEGIN { prev = ""; }
>     KH> 	{
>     KH> 		if (prev != "") {
>     KH> 			print prev;
>     KH> 		}
>     KH> 		prev = $0;
> 
> Won't that break if there are empty lines?

Yup.  Completely.

Later,
Kenn





More information about the ILUG mailing list