I have a log file that for some reason, once or two time a month, line foods are missing.
This log is generated from vmstat everyminute. I dont know why sometimes it does this.
Each line in the log should have 18 columns separated by one or more spaces.
Good Log: (not actual log)
1 1... (8 Replies)
Hi,
I have a text file with the following content:
monday,20
tuesday,10
wednesday,29
monday,10
friday,12
wednesday,14
monday,15
thursday,34
i want the following output:
monday,45
tuesday,10
wednesday,43
friday,12 (3 Replies)
Hi,
I'm running a DB query which returns names of people and writes it in a text file as shown below:
Carey, Jim; Cena, John
Cena, John
Sen, Tim; Burt, Terrence
Lock, Jessey; Carey, Jim
Norris, Chuck; Lee, Bruce
Rock, Dwayne; Lee, Bruce
I want to use awk and get all the names... (9 Replies)
Hi guys,
I have a script in which it simply do a grep of strings for the var/adm/messages file:
NEWDATE=`TZ=GMT+1 date +%b" "%d" "%H`
getalarm1=`grep "sent to primary BE" /var/adm/messages* | grep "$NEWDATE" | wc -l`
getalarm2=`grep "CC-Request-Type 3 received in state Idle"... (5 Replies)
so my output is this:
session_closed=157
session_opened=151
session_closed=18
session_opened=17
there are two patterns here, but with different values. the two patterns are "session_opened" and "session_closed". i expect there will be many more other patterns.
what i want to do is... (8 Replies)
Hi,
I am having script which contains many functions. Need to print each function name at the starting of the function. Like below,
functionname()
{
echo "functionname"
commands....
}
I've tried like below,
func=`grep "()" scriptname | cut -d "(" -f1`
for i in $func
do
nawk -v... (4 Replies)
I need to vlookup and check the server not found.
Source file 1
server1
server2
server3
server4
server5_root
server6_silver
server7
server7-test
server7-temp
Source file 2
server1_bronze (6 Replies)
Discussion started by: ranjancom2000
6 Replies
LEARN ABOUT HPUX
atexit
atexit(3) Library Functions Manual atexit(3)NAME
atexit - register a function to be called at program termination
SYNOPSIS DESCRIPTION
registers the function func to be called, without arguments, at normal program termination. Functions registered by are called in reverse
order of registration.
An call during exit processing is always unsuccessful.
The number of registered functions should not exceed as specified in
When necessary, or (see crt0(3) and dld.sl(5) for PA-RISC systems or dld.so(5) for Itanium-based systems) registers one or more functions
with to allow some processing at normal program termination. This registration occurs before any other.
RETURN VALUE
returns zero if the registration is successful; non-zero if unsuccessful.
SEE ALSO exit(2), crt0(3), dld.sl(5) for PA-RISC systems.
dld.so(5) for Itanium-based systems.
STANDARDS CONFORMANCE atexit(3)