![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | 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 |
| Redirect grep output into file !!!!! | hanu_oracle | Shell Programming and Scripting | 2 | 04-10-2008 06:02 AM |
| after grep i want to redirect it to some variable | mail2sant | Shell Programming and Scripting | 2 | 04-07-2008 06:26 AM |
| awk redirect output to shell variable | dhinge | Shell Programming and Scripting | 3 | 12-09-2006 08:11 AM |
| Redirect Output In Variable | ZINGARO | UNIX for Dummies Questions & Answers | 1 | 08-02-2006 03:56 AM |
| redirect command output to variable | hugow | UNIX for Dummies Questions & Answers | 1 | 06-22-2005 03:43 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
redirect the grep output into the variable
i want to redirect the grep output into the variable
but i am not able to get it i tried Code:
veri=`grep -i $1 "${logdir}"* | grep -i adding | grep -iv equation | tail -1 | cut -d ':' -f 1`
Code:
vari=$(grep -i $1 "${logdir}"* | grep -i adding | grep -iv equation | tail -1 | cut -d ':' -f 1)
please give us some alternate way to do this please Last edited by Yogesh Sawant; 04-08-2008 at 06:48 AM. Reason: added code tags |
| Forum Sponsor | ||
|
|