SchredderHDD.sh fehler bei mehrzeiligen Ausgaben korrigiert

This commit is contained in:
Ulf 2022-01-11 19:45:09 +01:00
parent 5fe215ddba
commit f1a0256814
2 changed files with 2 additions and 3 deletions

View File

@ -20,4 +20,3 @@ See also at [LUG-VS-Wiki Nützliche Scripte](https://lug-vs.org//lugvswiki/index
|[utf8.sh](utf8.sh)|Convert text from e.g. Windows latin1 to utf8 text (e.g. in READMEs or other text (not for office documents))|
|[wmf2svg.sh](wmf2svg.sh)|Example script converts WMF files in SVG to share it easily on the internet|
|[write-exif-comment.sh](write-exif-comment.sh)|Write JPEG EXIF comment in all *.jpg files|

View File

@ -1,7 +1,7 @@
#!/bin/sh
# Löscht ein komplettes Device
# Version 0.2.0
# Vom 2012-10-15 Aktualisert am 2021-01-24
# Vom 2012-10-15 Aktualisert am 2022-01-11
# (c) LUG-VS (GPL)
##Status anzeigen:
@ -28,7 +28,7 @@ fi
# Device zuweisen
OF=$1
SIZE=$(fdisk -l ${OF} 2> /dev/null | grep ${OF} | sed -r "s/.*\, (.*) byte.*/\1/I")
SIZE=$(( $(fdisk -l ${OF} 2> /dev/null | grep ${OF} | sed -r "s/.*\, (.*) byte.*/\1/I" | head -n1) ))
NAME=$(fdisk -l ${OF} 2> /dev/null | head -n2 | tail -n1 | sed 's/.*: *//' | sed 's/ *//')
RNDOM=$(( 20 * 1024 * 1024 )) # Durchsatz bei Zufallszahlen in B/s
NULLS=$(( 40 * 1024 * 1024 )) # Durchsatz bei Zufallszahlen in B/s