ergänze select script

This commit is contained in:
6543 2019-03-19 17:21:53 +01:00
parent 50b7d19b6b
commit 5e2ae0e5de

3
select
View File

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


#gleiche dateien anhand md5 aussortieren #gleiche dateien anhand md5 aussortieren