"RM" -> 2rm
This commit is contained in:
parent
dd911eedb1
commit
4aa4383da3
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/transport
|
/transport
|
||||||
/.Trash-*
|
/.Trash-*
|
||||||
|
*.md5
|
||||||
|
10
select
10
select
@ -1,8 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#wenn delete file exits -> handle deletons (importand for konflict handling
|
#wenn delete file exits -> handle deletons (importand for konflict handling
|
||||||
[ -f RM ] && {
|
[ -f 2rm ] && {
|
||||||
cat RM | cut -c -32 | while read line; do sed -i "/$line/d" vorhanden ; done
|
cat 2rm | cut -c -32 | while read line; do
|
||||||
cat RM | cut -c 35- | while read line; do
|
sed -i "/$line/d" vorhanden
|
||||||
|
done
|
||||||
|
cat 2rm | cut -c 35- | while read line; do
|
||||||
l=$(grep " $line"$ vorhanden)
|
l=$(grep " $line"$ vorhanden)
|
||||||
[ -n "$l" ] && {
|
[ -n "$l" ] && {
|
||||||
echo $l
|
echo $l
|
||||||
@ -10,7 +12,7 @@
|
|||||||
sed -i "/$md5/d" vorhanden
|
sed -i "/$md5/d" vorhanden
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
rm RM
|
rm 2rm
|
||||||
}
|
}
|
||||||
|
|
||||||
#gleiche dateien anhand md5 aussortieren
|
#gleiche dateien anhand md5 aussortieren
|
||||||
|
Loading…
Reference in New Issue
Block a user