My input file has below values,
93401140232
93403047213
93443757143
93451675101
93473360818
93451495679
93403707762
93403966944
93441513846
93472692526
I want to result only the "93441","93443","93451","93472" prefixes from the list. i thought of using below command,
awk -F, 'substr($1,0,5) in ("93441","93443","93451","93472") {print $0}' sample.txt
my command is not running. I think, I can not use "in" operator in awk. What is the effective alternative for this?