is the "$" used in command ok for this case (I want to find only lines having in 2nd column exact number after a letter
Code:
$ echo "A:C62:BCD:V\nB:D6:DEF:V"
A:C62:BCD:V
B:D6:DEF:V
$ echo "A:C62:BCD:V\nB:D6:DEF:V"|awk -F\: -va=V -vb=6 '$NF==a&&$2~b'
[s]A:C62:BCD:V[/s]
B:D6:DEF:V
$ echo "A:C62:BCD:V\nB:D6:DEF:V"|awk -F\: -va=V -vb=6 '$NF==a&&$2~b[COLOR=#CC0000]"$"[/color]'
B:D6:DEF:V
$