remove duplicate lines in file using awk

Code snippet comes from linuxsir

awk '!a[$0]++' target-file

Author: sanye

Exported At 2021-02-24 Wed 23:51. Created by Emacs 26.1 (Org mode 9.4)