Sample Header Ad - 728x90

I want remove repeated records and remove those lines in awk

0 votes
1 answer
60 views
I want check repeated records in column 2 and remove those lines in awk
create a
delete a
create b
create c
delete c
create d
delete f
create f
create g
create h
Expected Output
create b
create d
create g
create h
tried on awk using this command but getting other way, but not exact result note: AWK is not mandatory ``` awk -F" " '{ if( (++count[$2]==2) ) print }'
Asked by Nabob (15 rep)
Sep 18, 2022, 02:20 PM
Last activity: Sep 18, 2022, 03:01 PM