Skip to content

Instantly share code, notes, and snippets.

@dnicolson
Last active November 1, 2015 21:25
Show Gist options
  • Save dnicolson/5dd6869ff34291ea7588 to your computer and use it in GitHub Desktop.
Save dnicolson/5dd6869ff34291ea7588 to your computer and use it in GitHub Desktop.
#!/bin/bash
FILES=`find . -type f`
for F in $FILES
do
OUTPUT=`uniq -d $F 2> /dev/null`
LEN=${#OUTPUT}
if [ $LEN -ge 3 ]; then
echo $F
echo $OUTPUT
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment