The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-27-2004
raguramtgr raguramtgr is offline
Registered User
  
 

Join Date: Jan 2004
Location: chennai, india
Posts: 47
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
  #2 (permalink)  
Old 08-27-2004
google's Avatar
google google is offline Forum Advisor  
Moderator
  
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0