The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #12 (permalink)  
Old 05-14-2008
Vinaykumar1 Vinaykumar1 is offline
Registered User
 

Join Date: May 2008
Posts: 13
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.
Reply With Quote