I have my program generating some data. It output everything on standard error.
Now I'd like to redirect the output to a newly started text editor, into the main unnamed edit window that shows at startup. I tried with vim and gedit without success.
myprogram | gedit
myprogram | gvim
Anyone knows about an X11 text editor that would support this?
If you want to redirect stderr
of your program in to gvim
you can do:
myprogram 2>&1 | gvim -
and in case if you want to redirect the stdout
to the editor you can do:
myprogram| gvim -
I tried this in Ubuntu 12.04, it works as desired:
sudo lshw | gedit &
On Ubuntu 14.04
sudo lshw | gedit - &
Dimitry K added on Jan 22 '16 at 19:00 the following
I think you still need dash after:
gedit sudo lshw | gedit - &
(tried ubuntu 14.04 and only with dash it works) –
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With