![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to get the data from line number 1 to line number 100 of a file | Anji | Shell Programming and Scripting | 9 | 11-03-2008 04:59 AM |
| awk or sed for finding closest pattern to a line number | alirezan | Shell Programming and Scripting | 1 | 10-11-2008 07:08 AM |
| Finding the line number of matching braces | Rajendra_1510 | Shell Programming and Scripting | 3 | 10-07-2008 06:08 AM |
| Adding a columnfrom a specifit line number to a specific line number | Ezy | Shell Programming and Scripting | 2 | 05-12-2008 09:29 AM |
| Appending line number to each line and getting total number of lines | chiru_h | Shell Programming and Scripting | 2 | 03-25-2008 10:19 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
hi
i have a file , that contains data like [00000048:00000030] 34343538 3136414D 45583030 30302E54 445816AMEX0000.T [00000064:00000040] 524E2020 20202020 20202020 20202020 RN [00000080:00000050] 20202020 20203030 38303030 30303030 0080000000 [00000096:00000060] 30303030 30300D 000000. 20080724-051254.668419 [29321] D 473 gft$push/parse_gft_client_response: 28- a GFT 'CTL' message extracted from message buffer. i need to get the line number if it contains 473 and a GFT 'CTL' message extracted from message buffer. i am using lineno1=$(awk '/473 a GFT 'CTL' message extracted from message buffer. / {print NR}' $FILE) but i getting blank when print line1 please help thanks Satya |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|