On 31/12/16 09: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.
The other way of doing it which can be very useful - "man tee" hwinfo | tee hwinfo.txt That will display the output on the screen at the same time, rather than just silently dumping it to file. Depends what you want which one you choose ... :-) (That's the trouble with linux - too many options :-) Cheers, Wol -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org