Search Results

Search: Posts Made By: cimcmahon
3,663
Posted By cimcmahon
Hi tyler, I found out the answer if anyone is...
Hi tyler,
I found out the answer if anyone is interested

su - d3dadm -c "grep "\"successfully loaded DB2 library \'/db2/db2d3d\"" trans.log"
I only ever use csh for scripts as its nearly...
3,663
Posted By cimcmahon
Hi, You didn't su - user, so it's not...
Hi,
You didn't su - user,
so it's not working.
Thanks,
C
3,663
Posted By cimcmahon
Hi there, Thanks for your suggested solution. ...
Hi there,
Thanks for your suggested solution.
Unfortunately I get the same outcome

su - d3dadm -c "grep \"successfully loaded DB2 library '/db2/db2\" trans.log"
Unmatched '.

Regards,
C
3,663
Posted By cimcmahon
grep : having trouble with a single quote
Hi,
I search for the string below which contains a single quote,
some text '/home/myuser
in the file myfile.txt as another user with the grep command as follows
su - myuser -c...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy