![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script required to get a required info from file. Pls. help me. | ntgobinath | Shell Programming and Scripting | 2 | 05-31-2008 05:34 AM |
| SSL help required | binums | HP-UX | 0 | 05-03-2006 11:03 PM |
| help required | thaduka | UNIX for Dummies Questions & Answers | 5 | 02-14-2006 09:20 PM |
| Help required on DBX | Sumanth | SUN Solaris | 1 | 07-29-2004 06:54 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Help required on awk
Hi,
I have a fixed with file, which have almost 10 records Sample File: ------------ AR 100 TTT BC 200 SSS DA 199 YYY AR 500 RRR PO 300 QQQ PB 800 PPP PC 150 OOO AR 111 CCC AD 321 LLL I Have to check for first two charactors and if its 'AR' i have to save those records to one file, say FILE1 or i have to save to yet another file,SAY FILE2 OUTPUT ------- FILE1: ------- AR 100 TTT AR 500 RRR AR 111 CCC FILE2: ------ BC 200 SSS DA 199 YYY PO 300 QQQ PB 800 PPP PC 150 OOO AD 321 LLL Can i achieve this using awk or is there any way to do this? Thanks in advance |
| Forum Sponsor | ||
|
|