Hi All,
I have a file testarun.txt contains the below lines and i want to print the lines if the character positions 7-8 matches 01.
201401011111
201401022222
201402013333
201402024444
201403015555
201403026666
201404017777
201404028888
201405019999
201405020000
I am trying the below command
but im not getting the desired output of 5 lines which contains only 01 in the position 7-8.
awk '{ if (cut -c7-8 == 01) {printf $0} }' testarun.txt
Please help and this very emergency for me.
Thanks!