inxi pipe output to text file without control characters

Asked by Marius

How to pipe the output of inxi to a text file, without control characters ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Marius
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

inxi -b > ~/Desktop/System\ Information.txt

Like that ?

Revision history for this message
Marius (marius-nelson-nz) said :
#2

Thank you Andrew
The -b option sets the display to basic only, no data is written to a file.
I tried the > pipe which writes to a file but is full of control characters.
Any other suggestions are welcome.
Thank you

Revision history for this message
Marius (marius-nelson-nz) said :
#3

Found out that the Terminal can copy a selection to the clipboard. Then paste into text editor.
Good enough work-around.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

You can also pipe to xclip and the output of any command can be put directly onto the clipboard. Dead easy

Revision history for this message
Harald Hope (lontact) said :
#5

Legacy inxi, 2.x, did not remove colors when piped or redirected, inxi 3.x does. For legacy inxi, you use -c0 to remove colors.