ref: 043ba26ad986a919a68c4e4147d5df547b95a692
dir: /bin/hd/
#!/bin/rc
lines=3
while(! ~ $#* 0 && ~ $1 -* && ! ~ $1 --){
switch($1){
case -[0-9]*
lines=`{echo $1 | sed 's:^-::'}
}
shift
}
if(~ $1 --)
shift
if(~ $#* 0)
'*'=*
for(f)
if(test -f $f)
echo « $f && sed $lines^q $f && echo »