0

I have a data file fake_data.csv that stores the following data:

ts, value
1527392000, 1
1535392000, 10
1524392000, 200

I ran this command and it doesn't print out anything:

value=$(date +%s) | awk '{ if ($1>=$value) {print}}'  ./fake_data.csv

echo $value:
1526061574

So I think I should get two rows because the 1527392000>$value, and 1535392000>$value.

What went wrong here? Is it because the integers overflows? Does bash support long int type?

daydayup
  • 2,049
  • 5
  • 22
  • 47

0 Answers0