Jak udelat ...

Ferdinand Prantl prantl na praha1.ff.cuni.cz
Čtvrtek Duben 15 10:48:47 CEST 1999


  ... vyber vnitrku souboru bez prvnich a poslednich trech radku
      pro milovniky shellu (soubory musi byt delsi nez 3 radky) ...

#!/bin/sh
LINES=`wc -l $1 | cut -b 1-10`
cat $1 | head -`echo $LINES-3 | bc` | tail -n +4

  Kdyz to bude fungovat, napsal to Ferda Prantl,
  kdyz ne, nevim, kdo to napsal. :-)

-------------------------
Ferdinand Prantl
LVT FF UK
e-mail: prantl na ff.cuni.cz
www: http://www.ff.cuni.cz/~prantl



Další informace o konferenci Linux