Search Results

Search: Posts Made By: delbroooks
2,679
Posted By Chubler_XL
Oops yes, lint has picked up that this line: ...
Oops yes, lint has picked up that this line:

if( best = 9999999) deststart = cur

Is assigning to best (not comparing), I'd like to propose this solution:

#!/usr/bin/awk -f
FNR==1...
2,679
Posted By Chubler_XL
How about this: #!/usr/bin/awk -f FNR==1...
How about this:

#!/usr/bin/awk -f
FNR==1 {file++}
{
day=$1
gsub(/-/, " ", day)
split($2, t, ".")
gsub(/:/, " ", t[1])
x=mktime(day " " t[1]) + t[2] / 1000
if(file==1)...
2,679
Posted By Chubler_XL
You could try this script. I believe your OS...
You could try this script. I believe your OS should come with GNU awk by default so it's much more efficient to use the mktime() feature to convert these times.

#!/usr/bin/awk -f
{
day=$1
...
Showing results 1 to 3 of 3

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