Search Results

Search: Posts Made By: Chubler_XL
2,600
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,600
Posted By Chubler_XL
Try: gawk --lint -f awkscript4 file1.txt...
Try:

gawk --lint -f awkscript4 file1.txt file2.txt

or if you have the correct hash bang at the top of your script (something like #!/usr/bin/gawk -f) you can do:
$ chmod 755 awkscript4
$...
2,600
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,600
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 4 of 4

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