>Message: 6
>Date: Wed, 21 Sep 2005 16:47:24 +0300
>From: Florin Manole <[EMAIL PROTECTED]>
>Subject: [rlug] bash, prelucrare fisier text
>To: [email protected]
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain
>
>salut,
>
>cum pot cu comenzi bash sa prelucrez un fisier text
in >asa fel incat daca pe un anumit rand exista un
anumit > string sa imi verse randul respectiv +
randurile >ulterioare in alt fisier?
sau poti face un script bash cam asa:
#!/bin/bash
LINE_NO=`cat -n fisier |grep text_cautat|cut -f 1|sed
-e 's/ //g'`
tail -n +$LINE_NO fisier > fisier2
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug