Search Results

Search: Posts Made By: rpm120
2,861
Posted By RavinderSingh13
Corona688 sir fan of you really :b:, thank you...
Corona688 sir fan of you really :b:, thank you for great code.


Thanks,
R. Singh
2,861
Posted By Akshay Hegde
Input akshay@nio:/tmp$ cat file 2014/10/09 ...
Input
akshay@nio:/tmp$ cat file
2014/10/09 CDE876172588765 00:09:45 00:10:10 200 200 11.7093
2014/10/09 CDE366134588757 01:04:34 01:04:54 210 210 9.8898...
2,861
Posted By Corona688
$ cat timesub.awk BEGIN { # Where...
$ cat timesub.awk

BEGIN {
# Where time digits wrap.
split("24 60 60", T);
OFS="\t"
}
{
# A[1]="00", A[2]="10", A[3]="10", etc.
split($3, A, ":")
...
Forum: AIX 02-13-2014
34,992
Posted By bakunin
First, the first line of output of "vmstat"...
First, the first line of output of "vmstat" should always be ignored, as i said. Because you only have shown one line you should not use this output at all to base any assumption on it. IIRC it...
Forum: AIX 02-11-2014
34,992
Posted By bakunin
No problem. Have a look at vmstats "CPU" part: ...
No problem. Have a look at vmstats "CPU" part:

us=user(%)
sy=system(=kernel)(%)
id=idle(%)
wa=wait(%)

ec=entitled capacity consumed

"us" is what your running programs need
"sy" are...
Forum: AIX 02-10-2014
34,992
Posted By bakunin
The topas tool is a full-screen tool and its...
The topas tool is a full-screen tool and its output is not well suited for filtering it in a pipeline. I suggest you use vmstat instead, which presents the same information (albeit in different form,...
2,671
Posted By RudiC
Applied to your sample input, above script...
Applied to your sample input, above script yields12_2013162201 13:26:57 13:26:57
I can't see any error - no reason to complain. Please convince me that sth is wrong!
2,671
Posted By in2nix4life
Perhaps try putting your awk statement in a for...
Perhaps try putting your awk statement in a for loop:


for x in $(awk '/[0-9]_[0-9].*successful/{getline;getline;getline;print}' log filename | awk '{print $2}')
do
echo $x
done
2,242
Posted By RudiC
I guess the requestor's request has not yet been...
I guess the requestor's request has not yet been satisfied. You may want to tryawk ' {Arr[NR%5]=$0}
/34_794862826912345.*succ/ {print Arr[(NR+1)%5];...
2,242
Posted By Akshay Hegde
Try $ cat log 012/01/21 10:29:02 ...
Try

$ cat log
012/01/21 10:29:02 (111111) Processing Job '23_369468343464564'
2012/01/21 10:29:02 (111111)
Making Job '23_369468343464564.0'...
2012/01/21 10:29:04 (111111)...
2,242
Posted By Akshay Hegde
Show o/p requirement its not clear ...
Show o/p requirement its not clear

---------- Post updated at 10:40 AM ---------- Previous update was at 10:37 AM ----------



if just Jobnumber this will work
awk '/Jobnumber/' file
4,125
Posted By Don Cragun
Please get into the habit of using indentation to...
Please get into the habit of using indentation to show the structure of your code. It makes it a lot easier for humans to see what you're trying to do even if the awk interpreter (and the Korn...
4,125
Posted By Don Cragun
With the scripts I have given you and the...
With the scripts I have given you and the explanation of what one of the scripts does, can you tell us where changes need to be made to the script to add the additional three lines of output at the...
4,125
Posted By Don Cragun
Assuming you still want the same output format, I...
Assuming you still want the same output format, I would just change the:
$1 == dd && $NF == "successful" { s[$2 + 0, $3 > 29]++ }in the script I gave you to:
$1 == dd && /successful/ { s[$2 + 0, $3...
4,125
Posted By Don Cragun
#!/bin/ksh printf "Enter the date (YYYY/MM/DD):...
#!/bin/ksh
printf "Enter the date (YYYY/MM/DD): "
read dd
awk -F '[ :]' -v dd="$dd" '
BEGIN { fmt = "Batches that were successful on %s between %02d:%02d:00 " \
"and %02d:%02d:59...
4,125
Posted By Don Cragun
I agree with pravin27 that your input data has...
I agree with pravin27 that your input data has out of range timestamps. It is also weird that you want the final entry in your output to have timestamps 23:29:59 and 23:59:59 rather than 23:30:00...
4,125
Posted By pravin27
Could you please check timestamp in your file. ...
Could you please check timestamp in your file.
2013/03/07 24:12:42 [info] [client 64.242.88.10] Batch 429 was successful
2013/03/07 24:22:09 [info] [client 64.242.88.10] Batch 238 was successful...
Showing results 1 to 17 of 17

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