Skip to content

Instantly share code, notes, and snippets.

@smashah
Created September 13, 2023 18:42
Show Gist options
  • Save smashah/21a5c324ec6c02be1cc7f62c21f4a460 to your computer and use it in GitHub Desktop.
Save smashah/21a5c324ec6c02be1cc7f62c21f4a460 to your computer and use it in GitHub Desktop.
Simple Script to get the mount path of an SD card on Macbook Pro
system_profiler SPStorageDataType | awk 'BEGIN {RS=""; FS="\n"} /Built In SDXC Reader/ {print $0}' | grep 'Mount Point:' | awk -F': ' '{printf "%s", $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment