"RM" -> 2rm

This commit is contained in:
6543 2019-09-11 01:10:25 +02:00
parent dd911eedb1
commit 4aa4383da3
Signed by: 6543
GPG Key ID: A1CA74D27FD13271
3 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/transport
/.Trash-*
*.md5

View File

10
select
View File

@ -1,8 +1,10 @@
#!/bin/bash
#wenn delete file exits -> handle deletons (importand for konflict handling
[ -f RM ] && {
cat RM | cut -c -32 | while read line; do sed -i "/$line/d" vorhanden ; done
cat RM | cut -c 35- | while read line; do
[ -f 2rm ] && {
cat 2rm | cut -c -32 | while read line; do
sed -i "/$line/d" vorhanden
done
cat 2rm | cut -c 35- | while read line; do
l=$(grep " $line"$ vorhanden)
[ -n "$l" ] && {
echo $l
@ -10,7 +12,7 @@
sed -i "/$md5/d" vorhanden
}
done
rm RM
rm 2rm
}

#gleiche dateien anhand md5 aussortieren