[NBLUG/talk] OT: Bulk erasure
Scott Doty
scott at sonic.net
Thu Apr 3 08:25:01 PST 2003
On Wed, Apr 02, 2003 at 05:33:58PM -0800, Andru Luvisi wrote:
> # DEV=/dev/st0 # SCSI tape 0
> # DEV=/dev/hda # First IDE disk
> i=0
> while [ $i -lt 5 ]
> do
> dd if=/dev/zero of=$DEV
> perl -e 'for(;;) { print "\xff"; }' |dd of=$DEV
> dd if=/dev/urandom of=$DEV
> i=`expr $i + 1`
> end
Just thought I'd mention that bash understands four-function math...
i=`expr $i + 1`
could also read...
i=$[$i+1]
:)
-Scott
More information about the talk
mailing list