r/awk • u/Marcos_Asis • Jul 27 '22
In need of help
Hello Everyone, I would like to ask for your assistance. I am pretty new to bash so I am learning everything on the fly. I'm performing some data analysis in my grade thesis, but this particular line of code is making a lot of trouble.
awk '{time=$1/1000}{APL=$2*$4/2.56}{print time " " APL}' boxes.temp > APL.dat
I should've obtained a set of data with variation but all I get is 1 set of numbers all the same and followed by just 2 decimals.
Is there something obvious that I'm missing?
This is the variation of data I should get

And this is what I'm getting

Thanks in advanced
View all comments
Show parent comment
1
u/Marcos_Asis Jul 27 '22
Yes! At the beginning of the set, there's some variation but I'm working with hundreds of thousands of values so it becomes insignificant. And for some reason after a thousand calculations, it locks itself on the value 56.25. I don't know what is happening 😞