Command-line-text-processi
shellcheck-repl
Command-line-text-processi | shellcheck-repl | |
---|---|---|
3 | 4 | |
- | 15 | |
- | - | |
- | 3.1 | |
- | 4 months ago | |
Shell | ||
- | ISC 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.
Command-line-text-processi
-
Shell Script Best Practices, from a decade of scripting things
Submitted yesterday:
Learn to use Awk with hundreds of examples
https://github.com/learnbyexample/Command-line-text-processi...
https://news.ycombinator.com/item?id=33349930
-
Easily handle CLI operation via Python instead of regular Bash programs
Yep, ruby is a natural, pipeline friendly, command line companion out of the box.
https://github.com/learnbyexample/Command-line-text-processi...
https://learnbyexample.github.io/learn_ruby_oneliners/
-
My simple GitHub project went Viral
I had a similar experience with one of my GitHub repos [0] that is currently 9k+ stars. I added donation link when it was about 5k stars (after it went viral courtesy HN). But this was before GitHub sponsors. I removed donation links after I got only a single donation in about a year.
I had much better results when I started converting my tutorials into ebooks and sold them. Obviously having a paid product is different, but I'm referring to the paid sales I got whenever I put up 'pay what you want' offer.
[0] https://github.com/learnbyexample/Command-line-text-processi...
shellcheck-repl
-
Shell Script Best Practices, from a decade of scripting things
> "Use shellcheck."
(Disclaimer: I'm one of the authors)
After falling in love with ShellCheck several years ago, with the help of another person, I made the ShellCheck REPL tool for Bash:
https://github.com/HenrikBengtsson/shellcheck-repl>
-
Bash Pitfalls
Thank you, and thanks for the suggestion. Yes, it should be possible to keep the SC2154 check. I probably just disabled it as a quick fix when first started out. I'm tracking this in https://github.com/HenrikBengtsson/shellcheck-repl/issues/15.
> You'd also want to take into account special variables like $RANDOM and $HOSTNAME, but that's pretty trivial.
It seems like ShellCheck is already aware of these special Bash variable, e.g. 'echo $RANDOM' will not trigger SC2154 (or even SC2086 that otherwise asks you to quote variables).
-
ShellCheck: A static analysis tool for shell scripts
shellcheck-repl: Validation of Shell Commands Before Evaluation
https://github.com/HenrikBengtsson/shellcheck-repl
This tool validates your commands at the Bash prompt using ShellCheck and refuses to evaluate them if there's a mistake. It ignores a set of rules that doesn't play well with oneliners.
(Disclaimer: I'm one of the authors)
What are some alternatives?
Command-line-text-processing - :zap: From finding text to search and replace, from sorting to beautifying text and more :art:
shellharden - The corrective bash syntax highlighter
jc - CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
bats-core - Bash Automated Testing System
awk-hack-the-planet - Source code repo for Ben Porter (FreedomBen)'s free course on Awk (originally a talk at Linux Fest Northwest 2019 and 2020)
pure-bash-bible - 📖 A collection of pure bash alternatives to external processes.
pyp - Easily run Python at the shell! Magical, but never mysterious.
ShellCheck - ShellCheck, a static analysis tool for shell scripts
mg.sh - Mitigram's shell library of reusable script snippets
isort - A Python utility / library to sort imports.
dmenu-scripts - Serious fun with dmenu
static-analysis - ⚙️ A curated list of static analysis (SAST) tools and linters for all programming languages, config files, build tools, and more. The focus is on tools which improve code quality.