learn_gnused
cheat
learn_gnused | cheat | |
---|---|---|
10 | 32 | |
176 | 12,009 | |
- | 1.4% | |
3.8 | 5.2 | |
9 months ago | 10 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_gnused
-
Learn GNU sed with hundreds of examples and exercises
You can read the book online here: https://learnbyexample.github.io/learn_gnused/
-
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 :)
-
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.
-
Useful sed scripts and patterns for day to day usage
Many commands using `-r` do not need the option for the command used (for ex: `sed -r '/start/q'`). Also, using `-E` is preferred instead of `-r` since some of the other implementations support this option but not `-r`.
---
I wrote a book on GNU sed with plenty of examples and exercises: https://github.com/learnbyexample/learn_gnused It is free to read online and there's a detailed chapter for learning BRE/ERE regex flavor as well.
-
Linux/BSD command line wizardry: Learn to think in sed, Awk, and grep
Good introduction. But they should've at least mentioned that these tools can read a file input directly.
>For example, the sed man page weighs in at around 1,800 words alone without ever really explaining how regular expressions work or the most common uses of sed itself.
For Linux versions, `info` pages for grep/sed/awk are much more detailed and includes examples too. I use `man` pages only for quick reference. Also, I think I've read that BSD man pages are more detailed and include examples compared to Linux versions.
If you'd like to learn more, I have books on these commands with hundreds of examples and exercises (free to read online):
* https://learnbyexample.github.io/learn_gnugrep_ripgrep/
* https://learnbyexample.github.io/learn_gnused/
* https://learnbyexample.github.io/learn_gnuawk/
-
Linux/BSD command line wizardry: Learn to think in sed, awk, and grep
GNU sed
-
Show HN: GNU sed eBook with hundreds of one-liners and exercises
Hello!
This post links to the free to read online version.
PDF/EPUB versions are available from Leanpub/Gumroad [0]. You can either get it as separate book or part of bundles (which includes grep, awk, etc).
Code snippets, markdown source and other files related to the book is available on GitHub [1].
Hope you find it useful. Happy learning :)
[0] https://learnbyexample.github.io/learn_gnused/buy.html
[1] https://github.com/learnbyexample/learn_gnused
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?
Command-line-text-processing - :zap: From finding text to search and replace, from sorting to beautifying text and more :art:
tldr - 📚 Collaborative cheatsheets for console commands
debdroid - Install Debian on your Android Device (No longer maintained)
cheat.sh - the only cheat sheet you need
goexamples - Complete golang example; sample Go code
tealdeer - A very fast implementation of tldr in Rust.
clmystery - A command-line murder mystery
tldr - Haskell tldr client
TUI-apps - Terminal User Interface (TUI) apps
pywal - 🎨 Generate and change color-schemes on the fly.
useful-sed - Useful sed scripts & patterns.
howdoi - instant coding answers via the command line