nim-codex/generate-mb.sh

10 lines
160 B
Bash
Raw Permalink Normal View History

2024-07-03 09:33:17 +00:00
#!/usr/bin/env bash
# Example - generating 64 MiB file
# ./generate-mb.sh my_file.bin 64
fname=$1
size=$2
dd if=/dev/urandom of="$fname" bs=1m count="$size"