Search Results

Search: Posts Made By: zeus101
7,168
Posted By zeus101
Awk doesn't take % as a number. It is considered...
Awk doesn't take % as a number. It is considered as a string. Try this:

awk '{if ((substr($NF,1,length($NF)-1)+0)>80) print}' test.log

Here you convert $NF which is a percentage (string) to a...
1,301
Posted By zeus101
It looks like you have got yourself confused with...
It looks like you have got yourself confused with your statement that has the awk in it. The | makes the output of the echo to become the input for the awk. The problem is, your awk does not use this...
7,883
Posted By zeus101
Export variable as number
Thanks fpmurphy for the hint. It worked. The only problem is that for a start time of 060000 it gives some weird number. So I had to strip of the leading 0 and then convert to integer.

Thanks...
7,883
Posted By zeus101
Export variable as number
Hi Guys,
I am using the korn shell. I have an environments files where I have defined a variable
export START_TIME=060000
export END_TIME=220000
I source this environments file into one of my...
26,090
Posted By zeus101
wc -lc ${DATDIR}/wm_adj_mtg_actvy.dat | nawk '{...
wc -lc ${DATDIR}/wm_adj_mtg_actvy.dat | nawk '{ n=split($3,path,"/"); print $1" "$2" "path[n] }' >>${DATDIR}/hlp_NONCE_counts.rtf

Hope this helps
ZS
Showing results 1 to 5 of 5

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