![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Come and work for me! (UK) | TonyChapman | Linux | 2 | 03-25-2008 02:08 AM |
| How does it work? | nat123 | Linux | 1 | 11-04-2007 10:13 PM |
| Script doesn't work, but commands inside work | cheongww | UNIX for Dummies Questions & Answers | 2 | 11-14-2006 07:52 PM |
| How does tee work | Foxgard | UNIX for Dummies Questions & Answers | 1 | 06-18-2005 12:58 PM |
| Will this work? | Ypnos | Shell Programming and Scripting | 5 | 07-24-2003 10:51 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how does this work....
1|foo|bar
2|usa|ll 3|usa|vg 4|usa|vg 5|bar|vg 6|usa|vg 7|usa|ll 8|uk|nn 9|foo|manu|bar 10|uk|bb 11|foo|mm 12|kuwait|jkj 13|kuwait|mm 14|dubai|hh awk '/foo/,/bar/' test_file1----command run at the prompt output should have been the first 3 lines...... 1|foo|bar 9|foo|manu|bar 11|foo|mm 12|kuwait|jkj 13|kuwait|mm 14|dubai|hh |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
awk '/foo/,/bar/' test_file1 |
|||
| Google The UNIX and Linux Forums |