On 2016-12-31 10:39, stakanov wrote:
In data sabato 31 dicembre 2016 04:28:13, Felix Miata ha scritto:
stakanov composed on 2016-12-31 10:01 (UTC+0100):
I have to put the complete hwinfo from the cli to a txt outputfile. I recall I can do this somehow with grep, but all the web resources speak about long scripts. Notwithstanding, I recall, a very simple command can do this. If somebody is knowledgeable I would appreciate.
Grep would be for capturing some portion(s) of standard output. To capture the complete standard output of hwinfo to a file, use ordinary redirection:
hwinfo > hwinfo-output-file.txt
Ah, thank you very much. Now finally that is clearer to me. Great.
In the case of hwinfo, read the manual ;-)
Telcontar:~ # hwinfo --help
Usage: hwinfo [OPTIONS]
Probe for hardware.
Options:
...
--log FILE
Write log info to FILE.
Don't forget to also specify --