← Back to Gists

sort unique lines

📝 Bash
charlesr
charlesr · Level 1 ·

Sorts and deduplicates lines from a file or standard input.

Bash
if [ $# -ge 1 ]; then sort -u "$1"
else sort -u
fi

Comments

No comments yet. Start the discussion.