![]() |
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 |
| 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 |
| ksh pattern matching | ripat | Shell Programming and Scripting | 5 | 02-10-2008 04:44 PM |
| help need for pattern matching | HIMANI | UNIX for Dummies Questions & Answers | 10 | 01-22-2008 07:30 AM |
| Pattern Matching | op4_u | Shell Programming and Scripting | 10 | 07-18-2006 12:30 AM |
| Pattern matching sed | leemjesse | Shell Programming and Scripting | 3 | 03-23-2005 04:06 AM |
| Pattern Matching | danhodges99 | UNIX for Dummies Questions & Answers | 2 | 02-27-2003 03:03 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
pattern matching and print with sed
Hi
It is possible with sed to print a pattern within a line matching regexp? So, the line looks like : 19:00:00 [56434] blablablabla jobid 2345 <2> the regexp is "jobid 2345" and the pattern is 56434. That the code for find the line: Code:
sed -n"/jobid 2345/p" Code:
sed -n"/jobid 2345/,/\[.*\]/p" I could perhaps use other utilities like grep or awk but i want to do that with sed! nymus7 |
|
||||
|
Hi
It's working... ![]() Thanks a lot |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| grep or |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|