diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`where XXXXX is the size of the RAM disk in terms of memory blocks.
Notes:
| #!/bin/bash | |
| # heavily inspired by http://fitnr.com/showing-file-download-progress-using-wget.html | |
| URL=<YOUR DOWNLOAD URL> | |
| wget --progress=dot "$URL" 2>&1 |\ | |
| grep "%" |\ | |
| sed -u -e "s,\.,,g" | awk '{print $2}' | sed -u -e "s,\%,,g" | dialog --gauge "Download Test" 10 100 |