![]() |
|
|
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 |
| Grep usage | kingganesh04 | UNIX for Advanced & Expert Users | 1 | 02-26-2009 08:50 AM |
| how can I find cpu usage memory usage swap usage and logical volume usage | alert0919 | HP-UX | 3 | 12-02-2008 02:38 PM |
| Grep Usage | Omega1589 | UNIX for Dummies Questions & Answers | 5 | 09-29-2008 10:24 AM |
| Grep usage help | holyearth | UNIX for Dummies Questions & Answers | 7 | 05-29-2008 06:32 PM |
| grep Vs CPU usage | vasikaran | UNIX for Dummies Questions & Answers | 3 | 09-26-2005 03:37 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problems in Usage of grep
Hi all,
I have a file resp_cde.ats which has values as:- APPDIR=C:\Program Files\Cogny\cert PUBSDIR=C:\Program Files\Cognoy\cert\documentation TOURDIR=C:\Program Files\Cognoy\cert\tour DATADIR=C:\Program Files\Cognoy\cert\data Now I use the grep command in a shell script:- x=`grep DATADIR /f/g/resp_cde.ats` The value of x is printed as APPDIR=C:\Program Files\Cogny But I want the entire path i.e. APPDIR=C:\Program Files\Cogny\cert I have tried a lot of options but none is working. Can anyone please help me out? Vikas |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|