awk output field delimiter

Dear All,

1.txt (tab in between each value in a line)
a b c
a b c
a c d

you can see below, why with ~ i can output with tab, but = cannot?
[root@]# awk -F'\t' '$2 ~ /b/' 1
a b c
a b c
[root@]# awk -F'\t' '$2 = "b"' 1
a b c
a b c
a b d

Please advice.

Thanks

awk -F'\t' '$2 == "b"' 1

Guru

1 Like