Search Results

Search: Posts Made By: ashimada
12,478
Posted By Franklin52
You can use grep if your grep version supports...
You can use grep if your grep version supports the -A and -B option, otherwise:
awk '/ID=180/{c=4;next}
c--<0 && p{print p}
{p=$0}
END{print p}
' file
4,118
Posted By aigles
I confirm rdcwayx' post, awk doesn't need the...
I confirm rdcwayx' post, awk doesn't need the substr.
awk '
{
h += $2;
m += $3;
s += $4;
}
END {
m += int(s / 60);
s = s % 60;
h += int(m / 60);
m = m % 60;
printf...
Showing results 1 to 2 of 2

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