E
Evil Homer
Guest
I was wondering if there is any way to retrieve information that is output by the computer in the terminal and then use that information in a later command automatically? I am trying to write a script that will unmount the volume and then wipe the drive. I know that I need to type mount and then I need the informaiton from /dev/disk0s*, where the star varies from computer to computer and mount tells me what that number is on that particular computer. I need someway to get that number with a script and then use it in a dd command. Anyone know how to get that number? Thanks