Re: [dev] print utility

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Tue, 2 Apr 2013 21:03:41 +0200

>
> Please don't write this tool as it is already available: ed(1):
>
> echo '1,$-6p' | ed - "$1"
> echo '10,$--p' | ed - "$1"


better:

ed -s $1 <<"EOF"
   1,$-6p
EOF


;)
Received on Tue Apr 02 2013 - 21:03:41 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 02 2013 - 21:12:05 CEST