This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read -r diff | |
do | |
echo "$diff" | |
done comm -12 <(sort db) <(sort dbnew)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while [ comm -12 <(sort db) <(sort dbnew) ] | |
do | |
DIFF=$(comm -12 <(sort db) <(sort dbnew) | head -1) | |
find . -name "$DIFF" -exec rm {} \; | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gist.github.com/db11ade96eb709e8a1ae |