#! /bin/bash [[ -r $1 ]] && dd if=$1 bs=512 count=1 2>/dev/null | tr \x1A "\d" #| tr "\r" "\n" echo ""