On 21-Aug-12 5:49 PM, Alexandru Balan wrote: > 2012/8/21 Victor Buciuc <[email protected]> > >> Poti folosi sed: >> >> [vibu@lola:/nfs/usr/vibu]$ cat > gigel >> ana >> are >> mere >> [vibu@lola:/nfs/usr/vibu]$ cat gigel | sed -e '/ana/w gigel.1 \ >> /mere/w gigel.2' >> ana >> are >> mere >> [vibu@lola:/nfs/usr/vibu]$ cat gigel.1 >> ana >> [vibu@lola:/nfs/usr/vibu]$ cat gigel.2 >> mere >> > Dar ceva de genul for q in `cat patterns`; do cat logmare | sed -e '/$q/w > q.log' done o merge ? > >
uuioc c'mon Jay, poți mai mult de atât. în secvența asta vei apela cat pentru fiecare pattern, deci mai multe procesări, exact ce nu voiai. _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
