Go to GoReading for breaking news, videos, and the latest top stories in world news, business, politics, health and pop culture.

How to Use AWK to Get a Unique List

104 4
    • 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...

Leave A Reply

Your email address will not be published.