dimanche 4 août 2019

It's possible the awk command are not support 06xx numeric?

I have been make the shell script with awk condition to find the customer phone number but when the prefix 06xxxx showing the if else function didn't print any output. but for another prefix such as 08xxxx 03xxxx are working probably

I have been try to sort and directly find the number it's still not showing any output on prefix 06xxxx as below code

awk -F '|' '{ if ($1 >=0843370000 && $1 <=0843379999) printf "%1s|%1s|%1s|%1s|%1s\n", $1, $2, $3, $4, $5}' test2.txt

It's should showing the output as 061xxxxxxx|2202|1|20190728xxxxx| but for another prefix such as 095547xxxx it's push the output as normally. it's so weird and happen only prefix that start with 06x

Aucun commentaire:

Enregistrer un commentaire