If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > help needed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-08-05, 10:42
unixbee unixbee is offline
Registered User
 
Join Date: Mar 2005
Posts: 1
Unhappy help needed

Hi,
I am new to Unix shell scripting.I have a task of extracting employee names from the unix logs and check the status of the employee via a sql query.My fgrep returns more than 1 employees and I want to know how to give these values as an input to the sql query.
For example:
I have to grep thru file1,file2,file3 etc for emp_name='string'
and do
a select * from user_table where emp_name='string' on the results.

However my grep returns mutiple values,,,how do i give my grep output to the select stmt for all the employees?Please help me out.
Thanks.

Last edited by unixbee; 03-08-05 at 13:41.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On