Recently I wrote the following fragment in AWK by accident:
A = "a"
B = "b"
{
}
END {
print A, B
}
And the result completely blowed my mind up.
Just try to run this code against e.g. the following input file:
1
2
3
and enjoy the result.
The AWK code above was actually a part of a bigger...
Hello, everybody.
Does anybody use awk95 by Brian W. Kernighan? I think, I found a bug in realization of function split(), but I am not sure.
Here is a sample code where you can see it:
BEGIN {
time = "10:30:00,000"
split( time, a, ":" )
print a[3] # prints 00,000 - it's...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.