![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| search pattern in a string and rename | deepakgang | UNIX for Dummies Questions & Answers | 6 | 06-02-2008 02:43 AM |
| Advance string pattern search Please | sainj | Shell Programming and Scripting | 2 | 10-30-2007 10:56 AM |
| appending string to text file based on search string | malaymaru | Shell Programming and Scripting | 1 | 06-09-2006 09:53 AM |
| Search a file for pattern? | davjoyce | UNIX for Dummies Questions & Answers | 2 | 03-07-2006 06:07 PM |
| Search file for pattern and grab some lines before pattern | frustrated1 | Shell Programming and Scripting | 2 | 12-22-2005 03:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Search Mulitiple String pattern in a file
Hi,
I need to search for a multiple string pattern(5 key words) in a file(similar to a flat file) ,and i need to store the output in a another file . In that file we may have mutiple occurrences of the key words.and i need only the unique. kindly help out. Thanks, Mohana Krishnan |
|
||||
|
Quote:
Hi Mohana Krishnan, I don't understand this line. Can you explain it. In that file we may have mutiple occurrences of the key words.and i need only the unique. To search multiple patterns in a file u can use grep with -e option. grep -e pattern1 -e pattern2 -e pattern3 filename > newfile. Regards, Chella |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|