Results 1 to 2 of 2

Thread: unique sorted search from text file

  1. #1
    Join Date
    Sep 2019
    Beans
    264

    unique sorted search from text file

    Code:
    $ cat file.txt
    word4 word2
    word4 word2
    word3 word1
    word1 word3
    $
    How can I please get this output from file.txt ?
    Code:
    word1
    word2
    word3
    word4

  2. #2
    Join Date
    Mar 2010
    Location
    Been there, meh.
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: unique sorted search from text file

    This feels like a homework problem.

    sort -u will likely be part of the answer.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •