Up (Ultimate Plumber) - Tool For Writing Linux Pipes Amongst Mo Alive Preview


up is the Ultimate Plumber, a tool for writing Linux pipes inward a terminal-based UI interactively, amongst 2nd alive preview of ascendence results.
The top dog goal of the Ultimate Plumber is to help interactively in addition to incrementally explore textual data inward Linux, past times making it easier to speedily create complex pipelines, cheers to a fast feedback loop. This is achieved past times boosting whatsoever typical Linux text-processing utils such every bit grep, sort, cut, paste, awk, wc, perl, etc., etc., past times providing a quick, interactive, scrollable preview of their results.

Usage
Download up for Linux   |   ArchLinux: aur/up   |   macOS: brew install up   |   Other OSes
To source using up, redirect whatsoever text-emitting ascendence (or pipeline) into it — for example:
$ lshw |& ./up
then:
  • use PgUp/PgDn in addition to Ctrl-[←]/Ctrl-[→] for basic browsing through the ascendence output;
  • in the input box at the top of the screen, source writing whatsoever bash pipeline; in addition to then press Enter to execute the ascendence yous typed, in addition to the Ultimate Plumber volition forthwith demonstrate yous the output of the pipeline inward the scrollable window below (replacing whatsoever before contents)
    • For example, yous tin campaign writing: grep network -A2 | grep : | cutting -d: -f2- | glue - - — on my computer, later pressing Enter, the enshroud in addition to then shows the pipeline in addition to a scrollable preview of its output similar below:
         | grep network -A2 | grep : | cutting -d: -f2- | glue - -    Wireless interface      Centrino Advanced-N 6235    Ethernet interface      RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
    • WARNING: Please endure careful when using it! It could endure dangerous. In particular, writing "rm" or "dd" into it could endure similar running to a greater extent than or less amongst a chainsaw. But you'd endure careful writing "rm" anywhere inward Linux anyway, no?
  • when yous are satisfied amongst the result, yous tin press Ctrl-X to exit the Ultimate Plumber, in addition to the ascendence yous built volition endure written into up1.sh file inward the electrical current working directory (or, if it already existed, up2.sh, etc., until 1000, based on Shlemiel the Painter's algorithm). Alternatively, yous tin press Ctrl-C to quit without saving.
  • If the ascendence yous piped into up is long-running (in such instance yous volition run into a tilde indicator graphic symbol inward the top-left corner of the screen, important that up is however waiting for to a greater extent than input), yous may need to press Ctrl-S to temporarily freeze up's input buffer (a freeze volition endure indicated past times a # graphic symbol inward top-left corner), which volition inject a imitation EOF into the pipeline; otherwise, some commands inward the pipeline may non impress anything, waiting for amount input (especially commands similar wc or sort, but grep, perl, etc. may also demonstrate incomplete results). To unfreeze back, press Ctrl-Q.

Additional Notes
  • The pipeline is passed verbatim to a bash -c command, so whatsoever bash-isms should work.
  • The input buffer of the Ultimate Plumber is currently fixed at 40 MB. If yous rank this limit, a + graphic symbol should instruct displayed inward the top-left corner of the screen. (This is intended to endure changed to a dynamically/manually growable buffer inward a futurity version of up.)
  • MacOSX support: I don't direct keep a Mac, thence I direct keep no thought if it industrial plant on one. You are welcome to try, in addition to also to ship PRs. If you're interested inward me providing some form of official-like back upwards for MacOSX, delight consider trying to honour a means to ship me some usable-enough Mac computer. Please depository fiscal establishment complaint I'm non trying to "take advantage" of yous past times this, every bit I'm truly non at all interested inward achieving a Mac otherwise. (Also, trying to commit to this form of back upwards volition endure an extra burden in addition to obligation on me. Knowing somebody out at that spot cares plenty to create a fancy physical gesture would truly help alleviate this.) If you're serious plenty to consider this option, delight contact me past times e-mail (mailto:czapkofan@gmail.com) or keybase (https://keybase.io/akavel), so that nosotros could campaign to query possible ways to rank this. Thanks for understanding!
  • Prior art: I was surprised no i seemed to write a similar tool before, that I could find. It should direct keep been possible to write this since the dawn of Unix already, or earlier! And indeed, later I announced up, I got plenty publicity that my attending was directed to i such before projection already: Pipecut. Looks interesting! You may similar to check it too! (Thanks @TronDD.)
  • Other influences: I don't hollo upwards the fact likewise good already, but I'm rather certain that this must direct keep been inspired inward large utilisation past times The Bret Victor's Talk(s).