Search Results

Search: Posts Made By: timmywong
3,346
Posted By agama
The code below has changes to group based on...
The code below has changes to group based on hours; grouping based on minutes are just commented out.




awk '
{
split( $4, a, ":" )
#base = sprintf( "%s %s %s...
44,243
Posted By Scrutinizer
@pandeesh: The field separator can be a regular...
@pandeesh: The field separator can be a regular expression. So -F'[/"]*' uses multiple occurrences of the character / and/or the character " as field separator. The fields of the first line thus...
44,243
Posted By pandeesh
nawk -F/ '{print $1$3}' log|tr -d \"
nawk -F/ '{print $1$3}' log|tr -d \"
3,346
Posted By agama
Have a go with this: awk ' { ...
Have a go with this:



awk '
{
split( $4, a, ":" )
base = sprintf( "%s %s %s %s:%s", substr( $1, 2 ), $2, $3, a[1], a[2] );
if( !seen[base]++ )
{
...
Showing results 1 to 4 of 4

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