How to Use AWK to Get a Unique List
- 1). Log in to the Linux terminal.
- 2). Type "awk '{print inputfile.txt | sort -u}'" into the terminal. This inputs the file that contains your values into the awk tool, then pipes that result to the screen.
- 3). Press Enter to execute the command and a unique list of values from the input file is displayed.
Source...