Search Results

Search: Posts Made By: rdcwayx
973
Posted By rdcwayx
For loop in awk, a bug or something else?
Seems for loop in awk has bug?

For first awk, i expect to get 4 output: 1.5, 1.4, 1.3, 1.2, but there are only 3.

$ awk 'BEGIN {for (i=1.5;i>=1.2;i-=0.1) print i}'
1.5
1.4
1.3

$ awk...
Showing results 1 to 1 of 1

 

Featured Tech Videos

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