https://github.com/chfritz/lineselect Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. {{ message }} chfritz / lineselect Public * Notifications * Fork 0 * Star 23 Shell utility to interactively select lines from stdin License MIT license 23 stars 0 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights chfritz/lineselect This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 4 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/c] Use Git or checkout with SVN using the web URL. [gh repo clone chfrit] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @chfritz chfritz 0.1.2 ... b5db0fe Jul 5, 2023 0.1.2 b5db0fe Git stats * 12 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time source Remove color from input before outputting June 30, 2023 16:14 .gitignore Initial commit June 30, 2023 09:01 LICENSE Initial commit June 30, 2023 09:01 package-lock.json 0.1.2 July 5, 2023 09:44 package.json 0.1.2 July 5, 2023 09:44 readme.md Updated readme and package.json with keywords July 5, 2023 09:44 test.js First commit: working but some kinks remain June 30, 2023 11:37 View code LineSelect The applications are end-less Demo Video Install Acknowledgements readme.md LineSelect A shell utility to interactively select lines from stdin and output them to stdout. This allows you to effectively pause the pipeline to make a manual selection before the pipeline, or other composed command, continues. graph LR; a[some pipeline]-->|some lines| lineselect; lineselect-->|a subset of those lines| b[some other pipeline]; The applications are end-less For example, select files to delete ls | lineselect | xargs rm Select files from a list sorted by size and delete those files ls -lS | lineselect | tr -s ' ' | cut -d ' ' -f 9 | xargs rm Select docker containers to stop: docker stop $(docker ps | lineselect | cut -d ' ' -f 1) (z)Grep some some log files of interest: ls dpkg.log* | lineselect | xargs zgrep upgrade Demo Video Demo Install $ npm install -g lineselect Acknowledgements Built using the amazing React-for-CLI Ink library . With the key insight of writing directly to the TTY, by-passing stdout, to render the TUI without messing up the eventual output to stdout taken from https://github.com/geier/choose and https://superuser.com/a/742789/ 282396 . About Shell utility to interactively select lines from stdin Resources Readme License MIT license Stars 23 stars Watchers 1 watching Forks 0 forks Report repository Releases 4 tags Packages 0 No packages published Languages * JavaScript 100.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time.