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.