how to print the value > 1000 in a file

if the file test include

1233
0.123
0.128
0.165
0.14
14.5
134556
48968

can i show the output value > 1000 by command grep or awk or...?

1233
134556
48968

Thank you.

---------- Post updated at 09:55 PM ---------- Previous update was at 09:48 PM ----------

fixed.

awk '$0 > 1000{ print;}' file_tmp
1233
134556
48968
awk '$0>1000{print > "out.txt"}' input.txt

awk '$0>1000' inputfile
egrep '^[1-9][0-9]{3}' file

That will print lines starting with 1000 too.

thank you.:):):slight_smile: