![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Emergency UNIX and Linux Support !! Help Me!! Post your urgent questions here for highest visibility. Posting a new thread to this forum requires Bits. We monitor this forum to help people with emergencies, but we do not guarantee response time or answers. This forum is "best effort" only. Members who reply to posts here receive a bonus of 1000 Bits per reply. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|||
|
many many thanks to everyone that replied, the first bit of code I tried worked a treat, so stuck with that for the moment: Code:
awk '
{ $1 = $1 }
/DESCRIPTION/ { p=" "; next }
p { p=p" "$0; if (/"$/) {gsub(/ *"/,"",p); print p;p=""}}
' infile
I'll be looking through the rest of the given examples too - it's definitley a useful skill to have. You guys are a real lifesaver! |
![]() |
| Bookmarks |
| Tags |
| awk, mib, parsing, snmp |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting required fields from a test file in required fromat in unix | rdhanek | Shell Programming and Scripting | 7 | 07-22-2009 12:35 PM |
| complicated search within file | mmike | Shell Programming and Scripting | 7 | 10-06-2008 03:51 PM |
| Script required to get a required info from file. Pls. help me. | ntgobinath | Shell Programming and Scripting | 2 | 05-31-2008 09:34 AM |
| More complicated log parsing | sjug | Shell Programming and Scripting | 25 | 06-13-2007 10:33 AM |
| Very complicated script.. | rocinante | Shell Programming and Scripting | 5 | 06-08-2007 11:56 AM |