Skip to content

Instantly share code, notes, and snippets.

View pge's full-sized avatar

Patrick pge

  • Ibbenbüren
  • 10:06 (UTC -12:00)
View GitHub Profile
#!/bin/bash
while read -r diff
do
echo "$diff"
done comm -12 <(sort db) <(sort dbnew))
while [ comm -12 <(sort db) <(sort dbnew) ]
do
DIFF=$(comm -12 <(sort db) <(sort dbnew) | head -1)
find . -name "$DIFF" -exec rm {} \;
done
@pge
pge / 123
Created June 25, 2011 02:34
123
https://gist.github.com/db11ade96eb709e8a1ae