![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sed query | gopsman | Shell Programming and Scripting | 4 | 02-03-2009 02:41 AM |
| & in SQL query | Lindarella | Shell Programming and Scripting | 3 | 10-09-2006 04:43 PM |
| Query in awk | raguramtgr | UNIX for Dummies Questions & Answers | 1 | 08-31-2004 05:38 AM |
| RPM Query | silvaman | UNIX for Advanced & Expert Users | 1 | 08-15-2003 07:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Query In awk
Is it possible to have a pattern as RS in awk. For Example pl. go through the statement;
" Account Serial Number: 88888888 TT00X000000XXXXXXXXXXXXX SS00X000000XX.000,XXXXXXXXXXXXXXXXXX0000XXXXXXX0000000000 WW00X0000000XX000000000000MMMMMMM MMMMMMM0000AA11110000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000 ZZ88## 00000000 ### (XX00/00/00/00/00)0000 UUUUUUUU UUUU UUUUUUU: <PPPPPPPPPPPPP><> " Q1) can i have the RS as ZZ88##? (or only delimeters can be RS) Q2) if so how to check the pervious lines i.e, i want to get the "UUUUUUUU & AA1111" how to fetch that alone. replies appreciated. raguram R |
|
|||||
|
Yes the GNU Awk, gawk, implementation supports this feature. See the gAwk Manual for splitting records.
Last edited by google; 08-27-2004 at 11:06 AM.. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|