Hi,
I faced an issue where i.e root goes to another user i.e test
su - test this records fine in user test's .sh_history file and you can see what commands has been applied, but if you use just su test without '-' dash this doesn't record anything at all.
Basically '-' reads user's environment...
This thread pretty much answered for the question I had in mind while browsing these columns and vgersh99 nawk answer worked for me the best, to get rid of the trailing blanks or spaces.
So I would like to add an extra question:
I have an a error.log file where error messages from the message...
Howdy,
I am trying to make a script which first greps 'failed' messages and puts them into file.
Then I need to read each line and send them i.e as a separate mailx message.
Here first tested with echo-command to see the output:
So how to read a line as a string so that it would handle each...
Good Day,
I would like to put a "query" script to a logfile from cron which is run scheduled on a certain day.
lets's say we have a logfile containing some data from Feb 21st to Feb 24th and I want to run a script that copies the content from Feb22 to Feb 24 into a new file
cat...
Hi,
I know that the AIX system has been installed as 4.3.3.0 but giving a 'oslevel' it returns as a value TYPERML.
I was trying to find out from that script/subprogram (/usr/bin/oslevel) that where the oslevel has been defined but could't find it, or is it hard coded somewhere?
I believe...
Hello,
I have one small question where you awk-users can propably give an answer
I have a text file (file.txt) containing two columns and multiple rows
#cat file.txt
Alfa 0001
Beta 0002
Gamma 0003
.
..
...
In my program I do the following for each line using a program i.e which converts...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.