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
  • 1,801
  • 5
  • 20
  • 43

0 Answers0