One change, "command &> filename" should be "command &2>1 filename" on most systems. The numbers actually refer to relative file handles (2=STDERR and 1=STDOUT).
-Ben
I think what you're looking for is a redirect.
`lspci -v > filename`
This will redirect the output from "lspci -v" into the file "filename" where
you can copy & paste.
The above redirect will only redirect stdout (the normal output). Any error
messages will still be sent to stderr (the console). To redirect stderr you
would also use an ampersand.
`command &> filename`
This will capture all error messages and standard output in the file
"filename". I uses this all the time to capture error messages from a build
process. Ex: `make &> log`.
A pipe would be used to send the output from one command, to the input of
another.
`lspci -v | grep ...`
This will send the output from "lspci -v" to grep, where you can use a
regular expression to get the exact piece of the lspci output you're looking
for.
HTH,
Bart
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss