Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Getting info after running a command
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Evil Homer" data-source="post: 39990"><p>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</p></blockquote><p></p>
[QUOTE="Evil Homer, post: 39990"] 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 [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Getting info after running a command
Top