The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
grep unix.com with google



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 !!

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-27-2009
Registered User
 

Join Date: Nov 2009
Posts: 3
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..
  #2 (permalink)  
Old 11-27-2009
dj - the student
 

Join Date: Feb 2007
Location: Singapore/Bangalore/Cochin
Posts: 667
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
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:03 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0