[OT] Issue with a Mac Shell script
Jean-Luc Arnaud <jean-luc-E/[email protected]> Wed, 26 Sep 2018 17:58:15 +0200
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Organization | Centre Direct du Multimédia |
| Message-ID | <[email protected]> |
Hi all,
I'm trying to code a Unix script in order to eject a RAM Disk.
Using:
diskutil list | grep 'RAM Disk' | awk '{print $6}'
I'm able to get the disk ref (i.e. Disk1).
But trying:
diskutil eject |diskutil list | grep 'RAM Disk' | awk '{print $6}'
I can't achieve what I need.
Maybe, I should use a variable, but I don't know how to assign diskutil
list | grep 'RAM Disk' | awk '{print $6}' to a variable.
TIA for any help.
--
Jean-Luc Arnaud