![]() |
|
|
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 |
| Find a string under a directory that is contained in another file | BMC | Shell Programming and Scripting | 3 | 09-17-2008 02:41 PM |
| find string, then get the next 3 lines in a file | lyoncc | Shell Programming and Scripting | 8 | 11-07-2007 06:30 AM |
| find string in .jar file | rakeshou | UNIX for Dummies Questions & Answers | 8 | 07-06-2007 04:42 PM |
| Looking for command(s)/ script to find a text string within a file | wrwelden | Shell Programming and Scripting | 5 | 11-23-2006 12:53 AM |
| find and copy string in a file | vascobrito | UNIX for Advanced & Expert Users | 10 | 03-03-2004 02:14 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Find a string in a file
What is wrong in this:
One file in /tmp is test.txt...file has three rows as follows: YES I M HERE 12345 67890 Second file test2.txt: status = `grep -i "YES I M HERE" /tmp/test.txt` print "$status" if we execute test2.txt It is returning 'status' not found Last edited by yale_work; 10-10-2008 at 04:28 PM.. |
| Bookmarks |
| Tags |
| string grep |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|