Skip to content

Instantly share code, notes, and snippets.

@phelrine
Created October 23, 2012 10:43
Show Gist options
  • Save phelrine/3938119 to your computer and use it in GitHub Desktop.
Save phelrine/3938119 to your computer and use it in GitHub Desktop.
#!/bin/bash
cat $1 | while read LINE; do
echo $LINE | tr ' ' '\n' | uniq | tr '\n' ' '; echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment