![]() |
|
|
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 |
| 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 |
| Appending the line number and a seperator to each line of a file ? | pjcwhite | Shell Programming and Scripting | 4 | 03-21-2007 01:29 AM |
| Unix Script with line number at beginning of each line. | mascorro | Shell Programming and Scripting | 5 | 06-19-2006 05:34 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
hi
i have a file , that contains some data,i need to get the line numbr that cntains "Line timeout:" and thread no 3. i am using lineno1=$(awk '/'$THREADNO' Line timeout:/ {print NR}' $FILE) but the problem is if the thread no is 13, 23 , 43 it is taking that lines also,i need only that line that contains 3, Line timeout: please help thanks Satya |
|
||||
|
i/p file
20080729-115957.540859 [5521] D 3 Line timeout: 120 20080729-115957.540884 [5521] D 3 Start protocol: Wait SIGNON 20080729-115957.541100 [5521] D 3 Set timeout to: 120 ----------------------------------- ----------------------------- 20080729-115957.540859 [5521] D 13 Line timeout: 120 20080729-115957.540884 [5521] D 13 Start protocol: Wait SIGNON 20080729-115957.541100 [5521] D 13 Set timeout to: 120 o/p line number that contains only 3, Line timeout |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|