![]() |
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 |
| 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. |
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 11:35 AM |
| complicated search within file | mmike | Shell Programming and Scripting | 7 | 10-06-2008 02:51 PM |
| Script required to get a required info from file. Pls. help me. | ntgobinath | Shell Programming and Scripting | 2 | 05-31-2008 08:34 AM |
| More complicated log parsing | sjug | Shell Programming and Scripting | 25 | 06-13-2007 09:33 AM |
| Very complicated script.. | rocinante | Shell Programming and Scripting | 5 | 06-08-2007 10:56 AM |
![]() |
|
|
LinkBack | 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
|
![]() |
| Bookmarks |
| Tags |
| awk, mib, parsing, snmp |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|