Search Results

Search: Posts Made By: satish.vampire
4,577
Posted By ahamed101
I have no idea why it is behaving like this for...
I have no idea why it is behaving like this for you. Anyways try this


#!/usr/bin/awk -f
BEGIN{FS="<|=";print "hostname, gc type, datetime, duration, location, intervalms,...
4,577
Posted By ahamed101
I am getting the correct output. For the...
I am getting the correct output. For the location, a minor change may be required.

#!/usr/bin/awk -f
BEGIN{FS="<|=";print "hostname, gc type, datetime, duration, location, intervalms,...
4,577
Posted By ahamed101
Assuming the sample data you have given, try this...
Assuming the sample data you have given, try this

#!/usr/bin/awk -f
BEGIN{FS="<|=";print "hostname, gc type, datetime, duration, location, intervalms, percent";"hostname"|getline _1}...
2,603
Posted By durden_tyler
Or, using Perl - perl -lne 'BEGIN {print...
Or, using Perl -


perl -lne 'BEGIN {print "hostname, gc_type, date/time, milli secs"; chomp($h=`hostname`)}
if (/^.*?af.*timestamp="(.*?)".*$/) {$str="$h,af,$1"}
elsif...
2,603
Posted By pravin27
If it is constant then use awk -F"[=\"]"...
If it is constant then use
awk -F"[=\"]" 'BEGIN{print "hostname, gc_type, date/time, milli secs";OFS=","} {if(/timestamp/){ts=$9} if (/<time totalms/){tms=$3;getline; print "hostname" OFS...
Showing results 1 to 5 of 5

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