Results 1 to 1 of 1

Thread: help needed

  1. #1
    Join Date
    Mar 2005

    Unhappy Unanswered: help needed

    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.
    Last edited by unixbee; 03-08-05 at 13:41.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts