Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.5: Mount a partition or volume on demand' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Mount a partition or volume on demand
Authored by: rduke15 on Nov 08, '10 11:13:31PM
I had to change it to: dev_id=`diskutil list | awk '/Windows/{ print $8; }'`
This seems very fragile. If the disk is always the last word on the line, use $NF (Number of Fields) instead of a fixed position:
dev_id=`diskutil list | awk '/Windows/{ print $NF; }'` 

[ Reply to This | # ]