TUI-apps
learn_gnugrep_ripgrep
Our great sponsors
TUI-apps | learn_gnugrep_ripgrep | |
---|---|---|
25 | 6 | |
467 | 304 | |
- | - | |
6.7 | 3.1 | |
4 months ago | 10 months ago | |
Python | Shell | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
TUI-apps
- Show HN: Interactive TUI App for Python Regex Exercises
- Show HN: Interactive exercises for GNU grep, sed and Awk
-
Show HN: CLI text processing with GNU sed (eBook)
Hello!
I am pleased to announce a new version of my "CLI text processing with GNU sed" ebook. This book heavily leans on examples to present features one by one. In addition to sed commands and options, regular expressions are also discussed in detail.
Links:
* PDF/EPUB versions: https://learnbyexample.gumroad.com/l/gnu_sed (free for a few days)
* Web version: https://learnbyexample.github.io/learn_gnused/ (always free)
* Markdown source, example files, etc: https://github.com/learnbyexample/learn_gnused
* Interactive TUI app for exercises: https://github.com/learnbyexample/TUI-apps/blob/main/SedExercises
I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors.
Happy learning :)
- Show HN: Interactive TUI app for Python regex exercises
-
Learn GNU grep and ripgrep with hundreds of examples and exercises
I also wrote an interactive TUI app based on some of the exercises from the ebook. Reference solutions are provided for both GNU grep and ripgrep.
-
Good project to make the transition from terminal to GUI?
These days I prefer coding TUI apps using Textual (see my repo https://github.com/learnbyexample/TUI-apps for examples) since I find this framework easier to work with and I don't need full GUI features for my projects.
-
What are some good online resources with regex problems (and solutions)?
This year I started updating my existing books and I'm also creating interactive apps. Here's one for Python regex: https://github.com/learnbyexample/TUI-apps/blob/main/PyRegexExercises. Next is grep.
-
TUI app with 100+ interactive Python Regex exercises
Having an interactive program that automatically loads questions and checks the solution is wonderful to have while learning a topic. I wrote a TUI app that has beginner to advanced level exercises for Python regular expressions. There are more than 100 exercises covering both the builtin re and third-party regex modules.
- Show HN: Interactive Exercises for Python Regular Expressions
- PyRegexExercises – TUI to practice Python regex
learn_gnugrep_ripgrep
-
Learn GNU grep and ripgrep with hundreds of examples and exercises
Visit https://github.com/learnbyexample/learn_gnugrep_ripgrep for markdown source, example files, exercise solutions, sample chapters and other details related to the book.
-
Ask HN: Can I see your cheatsheet?
I use my ebooks for reference:
* GNU grep and ripgrep (https://learnbyexample.github.io/learn_gnugrep_ripgrep/)
* GNU sed (https://learnbyexample.github.io/learn_gnused/)
* GNU awk (https://learnbyexample.github.io/learn_gnuawk/)
* Ruby one-liners cookbook (https://learnbyexample.github.io/learn_ruby_oneliners/)
* Perl one-liners cookbook (https://learnbyexample.github.io/learn_perl_oneliners/)
* Command line text processing with GNU Coreutils (https://learnbyexample.github.io/cli_text_processing_coreuti...)
* Command line text processing with Rust tools (https://learnbyexample.github.io/cli_text_processing_rust/) — work-in-progress
* Computing from the Command Line (https://learnbyexample.github.io/cli-computing/) — work-in-progress
- exercises.
-
Grep Flags – The Good Stuff
>The -I flag only considers text files. This radically speeds up recursive greps.
I use ripgrep when I need better speed. I've pretty much switched to ripgrep these days, but still use GNU grep when I'm answering questions on stackoverflow, reddit, etc.
>ABC flags
Good to also know about `--group-separator` and `--no-group-separator` when there are multiple non-contiguous matches. Helps to customize the separator or remove them altogether. Sadly, these options are still not explained in `man grep` on Ubunutu. You'll have to use `info grep` or the online manual to find them.
Options I use often that is not mentioned in the article:
* `-c` to count the number of matches
* `-F` for fixed string matching
* `-x` to match whole lines
* `-P` for PCRE (as mentioned in many comments here)
* `--color=auto` this is part of command name alias, so it is always used
I wrote a book as well on "GNU grep and ripgrep": https://github.com/learnbyexample/learn_gnugrep_ripgrep Free to read online.
-
Are there any good sites for linux exercises/drills?
GNU grep and ripgrep
What are some alternatives?
textual - The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
dotfiles - My configuration files
epy - CLI Ebook (epub2, epub3, fb2, mobi) Reader
gcc-xpack - A binary distribution of the GNU Compiler Collection (GCC)
bubbletea - A powerful little TUI framework 🏗
learn_gnused - Example based guide to mastering GNU sed
pydantic - Data validation using Python type hints
clmystery - A command-line murder mystery
dagster - An orchestration platform for the development, production, and observation of data assets.
gitstery - A Git Murder Mystery
streamlit - Streamlit — A faster way to build and share data apps.
dotfiles - My dotfiles.