![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to grep for lines between 2 give patterns? | melanie_pfefer | Shell Programming and Scripting | 1 | 04-03-2008 08:38 AM |
| How to cut multiple patterns from a file? | Vijay06 | Shell Programming and Scripting | 5 | 11-26-2007 06:38 PM |
| Grep for Multiple patterns | WillImm123 | Shell Programming and Scripting | 7 | 03-01-2006 01:23 PM |
| Grep multiple patterns | malaymaru | Shell Programming and Scripting | 4 | 09-24-2005 10:20 PM |
| grep for multiple patterns | tselvanin | UNIX for Dummies Questions & Answers | 1 | 11-12-2003 04:43 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
grep patterns - File
Hi
I have 3 patterns for example to be searched. These three patterns are available in file1. The patterns to be searched are in file2. I want to search the pattern of file1 to file2. Can any one help with example? Regards Dhana |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
grep -f patterns.file data.file |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|