From: Jochen Cichon (jc@versainter.net)
Date: Tue Nov 07 2000 - 10:11:00 CET
> > So i've used awk...
> > ---------- cut here ------------
> > #!/bin/ash
> > 
> > awk -v max=$2 '
> > 	begin { i=0 } 
> > 	{ if (i < ((max=="")?10:(max<0)?-1*max:max)) print $0; i++; }' $1
> > ---------- cut here ------------
> > and it's only 110 Bytes to 635 Bytes :)
> 
> Thank you. You call awk in a shell script; this requires much
> memory. It is better to change interpreter in the head of the
> script  "#!". I will try, in future, to improve your script.
Oh yes. Your're Right... :) <G>
Want some more scripties :))
I've done a simple uptime :) 
But there is no users or who... (ok we can use mu-finger for that :)
Jochen
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:16 CET