![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
How to outfile contant as an input for a command
I`m having output file which contain following no which changes every time i run script.The number given below are there in file and i have to fatch them from file.
12 15 56 158 365 165 598 568 265 256 258 now i want to use above number from output to input as $j r=`/omp/bin/ICIC "pp:call $j,cdd 2,ccc 1"|grep -w "BU"|wc -l` $j should have above no as an input .please help.above number are there in a output file and now i want to use them in above command as n input. Last edited by nitin_aaa27; 11-27-2009 at 08:46 AM.. |
|
|||
|
Something like this... Code:
while read j do r=`/omp/bin/ICIC "pp:call $j,cdd 2,ccc 1"|grep -w "BU"|wc -l` ..... done <file |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to extract some parts of a file to create some outfile | iammitra | Shell Programming and Scripting | 21 | 05-11-2009 12:06 PM |
| ps command input | icefish | UNIX for Dummies Questions & Answers | 1 | 01-27-2009 06:27 AM |
| problem with output of find command being input to basename command... | new_learner | UNIX for Dummies Questions & Answers | 2 | 12-14-2008 02:56 AM |
| Setting outfile with (brackets) | Pablo_beezo | Shell Programming and Scripting | 1 | 10-02-2008 10:15 AM |
| input to a command... | santy | UNIX for Dummies Questions & Answers | 1 | 08-19-2006 04:25 AM |