Bash Using sort Make output unique


Example

If each lines of the output need to be unique, add -u option.

To display owner of files in folder

ls -l | awk '{print $3}' | sort -u