0

Sort only unique words inside a file

Hi, there i want to print a file with only unique words but not the repeated word, is there any command or bash script method to achieve that? Thanks in advance

Shell Script sort Bash-scripting Add a comment
symonds
asked Apr 06 2018

Answer

0

use the below command to sort unique words inside a file

sort -u file_name
Add a comment
parthiban
asked Apr 15 2018
edited Oct 05 2018
Post your Answer