-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck
More file actions
executable file
·18 lines (14 loc) · 738 Bytes
/
check
File metadata and controls
executable file
·18 lines (14 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
touch files.txt
rsync -avnc --exclude-from 'exclude-list.txt' --out-format="%o:/%f" .??* ~ | grep -e "^send.*" | awk '{split($0,a,":"); print a[2]}' >> files.txt
rsync -avnc --exclude-from 'exclude-list.txt' --out-format="%o:/%f" * ~ | grep -e "^send.*" | awk '{split($0,a,":"); print a[2]}' >> files.txt
rsync -avnc .git-completion.bash --out-format="%o:/%f" ~ | grep -e "^send.*" | awk '{split($0,a,":"); print a[2]}' >> files.txt
rsync -avnc .gitconfig --out-format="%o:/%f" ~ | grep -e "^send.*" | awk '{split($0,a,":"); print a[2]}' >> files.txt
while read p; do
basename="$(basename -- $p)"
otherfile="$HOME/$basename"
echo "$p $otherfile"
sdiff -s $p $otherfile
echo -e "\n"
done <files.txt
rm files.txt