Does someone know of a GUI application (X/GTK+/Qt/whatever) that can be used instead of less
or more
for viewing text, specifically one piped in from standard input? Ideally looking for something that can also run on Mac OSX (or maybe even just on Mac).
I'm looking to introduce UNIX newbies to the wonderful world of command line text processing (with awk
, sed
, grep
and even some perl
) and it would be useful to show them the text using a nice GUI that allows interactive search, scrolling with the mouse (I know most Linux terminals support mouse scrolling with less, but Mac terminals do not), etc.
The best thing I found so far was to pipe input into zenity --text-info
, but that viewer is very limited and does not even allow searching.
command | gedit -
(note the trailing dash) – don_crissti Mar 15 '16 at 12:10command | gvim -
, if that counts. – Sparhawk Mar 15 '16 at 12:16-
as the input specification forgedit
. It works nicely, though I think theleafpad
solution is cleaner for about the same capabilities. Other editors I've tried using-
with didn't work well :-( – Guss Mar 15 '16 at 12:25file=$(mktemp)
and that will i) create a different file per process so you don't have to worry about name collisions and ii) create it in/tmp
where they will be deleted automatically on the next reboot (depending on how your system is setup). – terdon Mar 15 '16 at 12:28command | kate -i
. – Sparhawk Mar 15 '16 at 12:28grep
s. – Guss Mar 15 '16 at 12:29man <some gui app>
more: Kate is my preferred editor and I wasn't even aware it had all those useful flags :-) . It does basically everything I need, even running on Mac (with some fiddling). If only you'd post it as an answer... – Guss Mar 15 '16 at 12:31gvim
:) I'll post thekate
answer up. – Sparhawk Mar 15 '16 at 13:13-
option isn't available in all versions ofgedit
; I have 3.4.2 (from Debian 7), and that option appears not to work. – Kyle Strand Aug 11 '16 at 17:27