Q:

macos command line test disk speed

read=$(dd if=tstfile bs=2048k of=/dev/null count=1024 2>&1 | grep sec | awk '{print $1 / 1024 / 1024 / $5, "MB/sec" }')

echo $read
0

New to Communities?

Join the community