dotfiles

<-- duh.
git clone https://hhvn.uk/dotfiles
git clone git://hhvn.uk/dotfiles
Log | Files | Refs | Submodules | LICENSE

dupfind (195B)


      1 #!/bin/sh
      2 
      3 IFS='
      4 '
      5 for f in $(find $@ -type f)
      6 do
      7 	sha512sum "$f"
      8 done | sort | awk '
      9 	// {
     10 		if (lastsum == $1) {
     11 			print last
     12 			print $0
     13 		}
     14 		lastsum=$1
     15 		last=$0
     16 	}' | awk '!visited[$0]++'