|
|
List all the Intel-ready apps on your Mac
what does the
portion of this do (I know what /dev/null is for but the 2> I don't know)?
List all the Intel-ready apps on your Mac
It redirects error message output, known as stderr.
List all the Intel-ready apps on your Mac
Indeed.
More detail: in the Unix world, every process gets three standard streams assigned to it: standard input (stdin), standard output (stdout), and standard error (stderr); with file descriptors 0, 1, and 2 resp. Standard input and output are self-explanatory; they usually go from keyboard and to screen unless you redirect them with > and < or |. Standard error is another output stream that's used for error messages; it keeps them from getting mixed up with the proper output, and ensures you see errors even if you've redirected stdout. (Another difference is that whereas stdout is buffered for speed, stderr is unbuffered so you get to see your errors immediately.) It's a little more difficult to redirect stderr: you have to use the more general redirection syntax and precede the > with the file descriptor of the stream to redirect. Remember that stderr's file descriptor is 2? So 2> redirects stderr in the same way that > (or 1>) redirects stdout. HTH! --- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|