Hi all,
I just want to find all values that are in a specified interval. I tryed it with
grep e-[18-17] file
, it does not work.
Is it possible to get values wich are lower a special number, like
grep >e-18 file
?
Thanks a lot
Hi all,
I just want to find all values that are in a specified interval. I tryed it with
grep e-[18-17] file
, it does not work.
Is it possible to get values wich are lower a special number, like
grep >e-18 file
?
Thanks a lot
Post the input file and the desired output.
input
0.4604 7.088 5.351e-10
0.536 8.395 1.612e-12
-0.5311 -8.208 3.72e-12
0.7112 8.725 3.685e-17
0.4604 7.088 5.351e-18
0.536 8.395 1.612e-19
-0.5311 -8.208 3.72e-17
0.7112 8.725 3.685e-13
grep e-[18-17] test.txt
output
0.4604 7.088 5.351e-10
0.536 8.395 1.612e-12
-0.5311 -8.208 3.72e-12
0.7112 8.725 3.685e-17
0.4604 7.088 5.351e-18
0.536 8.395 1.612e-19
-0.5311 -8.208 3.72e-17
0.7112 8.725 3.685e-13
Do you need to grep the records containing e-17 and e-18?
grep e-1[78] test.txt
it works, thanks!