1

awk decimal point numbers matching

view story
linux-howto

http://www.unix.com – Hi All, Can some one help me in identifying the significance of character "$" ,Which is playing critical role in matching decimal point numbers as below. [sys@localhost ~]$ echo "01#.01"|awk '{if ($0 ~ /^[0-9]+(\.[0-9]*)?$/) print}' [sys@localhost ~]$ echo "01#.01"|awk '{if ($0 ~ /^[0-9]+(\.[0-9]*)?/) print}' 01#.01 [sys@localhost ~]$ Regards, Rmkganesh. (HowTos)