I have a dynamically growing ascii file which has large data (both text and digits). I need to grep those lines having value greater than '123'. These numeric values may appear at anywhere in the line, hence I could not use awk to split to columns.
So, please help me with the grep regular expression pattern for this.
$
$
$ cat f18
400.232352,ATK4875739,234,2,33,3 # show, because no. from beginning to 1st comma is decimal and > 123
100.23,XYZ,0 # don't show, because no. from beginning to 1st comma is decimal but < 123
125,ABC,0 # don't show, because no. from beginning to 1st comma is not a decimal
12PQR,DEF,0 # don't show, because chars from beginning to 1st comma do not represent a number
123.000001,ATK4875739,234,2,33,3 # show, because no. from beginning to 1st comma is decimal and > 123
-100.23,MNO,0 # don't show, because no. from beginning to 1st comma is decimal but < 123
$
$
$ perl -lne '/^(.*?),.*/; print if $1 !~ /[a-zA-Z]/ and int($1) != $1 and $1 > 123' f18
400.232352,ATK4875739,234,2,33,3 # show, because no. from beginning to 1st comma is decimal and > 123
123.000001,ATK4875739,234,2,33,3 # show, because no. from beginning to 1st comma is decimal and > 123
$
$
$