Search Results

Search: Posts Made By: ramanaraoeee
2,001
Posted By ahamed101
Try this... awk '{gsub("^apple$","XXX")}1'...
Try this...

awk '{gsub("^apple$","XXX")}1' input_file

#or

sed 's/^apple$/XXX/g' input_file
--ahamed
2,001
Posted By ahamed101
Should apple in "pine apple" be replaced? or you...
Should apple in "pine apple" be replaced? or you want to replace only lines with the string "apple"?


awk '{gsub("apple","XXX")}1' input_file
In solaris, use nawk!

--ahamed
3,259
Posted By daggulasreedhar
How to see actual username who logged in as root with sudo
All commands run as sudo are logged in the log file /var/log/messages.
Have a great work Mr. Ramana.

Cheers,
Sreedhar
3,259
Posted By daggulasreedhar
Dear Ramana, You might not be able to see...
Dear Ramana,

You might not be able to see because in your system sudo log is not configured.
You have to configure in syslog.conf to see the details. So please add the below lines in...
3,259
Posted By methyl
Don't know what O/S you have. Try: logname
Don't know what O/S you have.

Try:
logname
Showing results 1 to 5 of 5

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