what are you doing here, man?

#!/bin/sh minsize=0 target=”/tmp/bad-blocks.txt” for disc in `fdisk -l | grep ‘^/’ | awk ‘{ print $1 }’`; do badblocks -v $disc > “$target” tam=$(du -k “$target” | cut -f 1) if [ $tam -eq $minsize ]; then echo “no badblocks on $disc” else echo “badblock(s) found(s) on $disc”