On Friday 05 December 2003 15:46, Petrisor Eddy wrote: > O mica intrebare: > > Se poate afla linia pe care e un text grep-uit dintr-un fis cu unelte de > tip grep, head, tail, FARA perl?
START=`grep "BLEAH 1" -n file.tst | cut -d: -f1` END=`grep "BLEAH 2" -n file.tst | cut -d: -f1` tail +$(($START+1)) file.tst | head -$(($END-$START-1)) Mihai --- Detalii despre listele noastre de mail: http://www.lug.ro/
