learn_gnugrep_ripgrep
cheat
learn_gnugrep_ripgrep | cheat | |
---|---|---|
6 | 32 | |
305 | 11,963 | |
- | 1.0% | |
3.1 | 5.2 | |
10 months ago | 16 days ago | |
Shell | Go | |
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.
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
cheat
-
Should you add screenshots to documentation?
Looks like bro pages is archived and they recommend https://github.com/tldr-pages/tldr or https://github.com/cheat/cheat
-
Was looking at the GitHub page for eg and found this gem
I tried eg and tldr, but I preferred cheat. Why, and why not. Cheat not only have nice examples, but let you improve them or create yours. I use the cli, not the curl.
-
This sub turned me onto Raycast, but... No syncing of settings / keyboard shortcuts between machines??
Hey, the app I recommend shows you all the commands you need per app not just for macOS! Support for programming languages? Download this. For git, docker and neovim download this one.
-
Aid needed
cheat is also a useful one. Shows you a cheat sheet for the command you search.
-
how to enable cheat autocompletion in zsh
are you sure autocompletion isn't enabled for cheat? You're maybe hitting this bug upstream.
-
What is a good way to learn bash scripting
Find something to automate or make easier and write a script for it. If you get stuck on a detail, read the man pages of the command you're using (man pages confuse you? try tldr or cheat). Then google it, there's a shitton of SO Q&A on bash. If you can't find it, find a bash channel on irc or discord and ask (they'll expect you've read the FAQ though). Keep notes. I wrote a script to read and edit notes for bash, in bash, and it taught me new things!
-
Do you ever use cheat sheets at work?
Definitely do. I created my own doc site using docusaurus where i stored a lot of info i use every once in a while. Things i use more often are available as aliases in the shell or zsh functions. There's also the handy dandy cli https://github.com/cheat/cheat that contains a lot of cheat sheets for common binaries.
-
Why can't I hold all these syntaxes?
cheat and howdoi
- Ask HN: Terminal Cheatsheets
-
My thoughts after a week of ChatGPT usage
As a dev - It's a good (very good, in fact) alternative for man, tldr, cheat and zeal (and probably tens of other projects - sorry for not mentioning you) with a very pleasant interface - which was the point I think ;)
What are some alternatives?
dotfiles - My configuration files
tldr - 📚 Collaborative cheatsheets for console commands
gcc-xpack - A binary distribution of the GNU Compiler Collection (GCC)
cheat.sh - the only cheat sheet you need
TUI-apps - Terminal User Interface (TUI) apps
tealdeer - A very fast implementation of tldr in Rust.
dotfiles - My dotfiles.
tldr - Haskell tldr client
learn_gnused - Example based guide to mastering GNU sed
pywal - 🎨 Generate and change color-schemes on the fly.
clmystery - A command-line murder mystery
howdoi - instant coding answers via the command line