Bash script for Mac OS X and Linux to test SD/microSD card or SSD/HDD/USB drive read and write speed.
Usage:
$ bash sd_card_speed_test.sh <path to directory which should be tested>
Note: administrator password is necessary for sudo to reset file system cache. Read speed result is incorrect without cache reset.