I have the following terminal command, which matches volumes called A001R45R, A123R45R, etc.
diskutil eraseVolume HFS+ FreshMag /Volumes/*R45R
But I also want it to match volumes called B001R4G5, B150R4G5, etc. How can I use the OR expression in the wildcard? I tried the following, but it doesn't work:
$ diskutil eraseVolume HFS+ FreshMag /Volumes/{*R45R,*R4G5}
The third parameter does not appear to be "bootable" or "nonbootable"
$ diskutil eraseVolume HFS+ FreshMag /Volumes/"{*R45R,*R4G5}"
Unable to find disk for /Volumes/{*R45R,*R4G5}
I'm using bash.
Aucun commentaire:
Enregistrer un commentaire