Filedot: Random

#!/bin/bash # filedot random – generate a random file usage() echo "Usage: filedot random <filename> [size in MB]"; exit 1; [ "$1" != "random" ] && usage OUTPUT="$2:-random.bin" SIZE_MB="$3:-1" dd if=/dev/urandom of="$OUTPUT" bs=1M count="$SIZE_MB" status=progress file "$OUTPUT" Run:

filedot random testfile 5 Output example: filedot random