![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Windows & DOS: Issues & Discussions Questions involving Unix to Windows (Desktop or Server) go here. Any Windows/DOS questions should go here as well. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extracting data from text file based on configuration set in config file | suparnbector | Shell Programming and Scripting | 3 | 08-09-2007 11:25 PM |
| Exporting text file data to csv | l_jayakumar | Shell Programming and Scripting | 3 | 09-18-2005 08:27 PM |
| filter data | deep.singh | UNIX for Dummies Questions & Answers | 3 | 08-14-2005 08:24 PM |
| How to extract data from a text file | negixx | Shell Programming and Scripting | 1 | 07-19-2005 06:30 PM |
| getting data out from a text file | skotapal | Shell Programming and Scripting | 7 | 09-14-2002 08:10 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Code:
awk '/^----*Table/{table=$0}
/^IP=/{ print table }' file
|
| Forum Sponsor | ||
|
|
|
|||
|
Thank you radoulov and era.
Radoulov solution very near that what I am looking for. This script (radoulov) print out from tables only those rows which are before IP=x.x.x.x After IP=x.x.x.x are couple rows more and I like to print out those too. |
|
|||
|
Quote:
Sorry. What do you mean new line? If I put your code to my Solaris shell window I get error message (If I copy and paste your code). |
|||
| Google The UNIX and Linux Forums |