|
Hi era,
sed -e '/^AAA/w AAA.dat' -e '/^BBB/w BBB.dat' number.dat works..
Thanks a lot.
Can I specify the path where it should be stored:
sed -e '/^AAA/w /export/home/vinay/AAA1.dat' -e '/^BBB/w /export/home/vinay/BBB1.dat' a.dat
I hope there is some error
Also does sed provides a way to search specific fields, like the -f1 (1st field) option
Also does the sed -e '/^AAA/w AAA.dat' -e '/^BBB/w BBB.dat' number.dat traverses through the number.dat once or twice.
.. Kindly assist me if possible
Thanks and Regards,
Vinay
Last edited by Vinaykumar1; 05-14-2008 at 01:47 AM.
|