Bash-Oneliner
sub
Bash-Oneliner | sub | |
---|---|---|
18 | 4 | |
8,134 | 1,733 | |
- | 0.0% | |
3.4 | 0.0 | |
5 months ago | over 2 years ago | |
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.
Bash-Oneliner
-
Why do linux users use terminal when the gui system apps are way noob friendly?
And here's a great place to learn the power of the bash oneliner!
-
GitHub - onceupon/Bash-Oneliner: A collection of handy Bash One-Liners and terminal tricks for data processing and Linux system maintenance.
You forgot/accidentally dropped the actual link to your collection.
- Bash one-liner tricks
-
I Deleted 7TB of Videos Before Going to Production
Ctrl + x + Ctrl + e : launch editor defined by $EDITOR to input your command. Useful for multi-line commands.
I have tested this on windows with a MINGW64 bash, it works similarly to how `git commit` works; by creating a new temporary file and detecting* when you close the editor.
[0] https://github.com/onceupon/Bash-Oneliner
* Actually I have no idea how this works; does bash wait for the child process to stop? does it do some posix filesystem magic to detect when the file is "free"? I can't really see other ways
- Bash-Oneliner: A collection of handy Bash One-Liners and terminal tricks
-
A collection of handy Bash One-Liners and terminal tricks for data processing and Linux system maintenance
This repo of a collection of Bash One-Liners and terminal tricks was recently posted over on HackerNews.
- Bash-oneliner: A collection of handy Bash one-liners and terminal tricks
sub
-
The Unreasonable Effectiveness of Makefiles
Scripts in bin have no documentation, no easy way to enumerate them, etc. There is definitely a time and a place for bin scripts, especially as things grow in complexity. However the beauty of just is that there's one file (the justfile) that defines all of your project's actions. You don't have to go spelunking into bin to figure out how to tweak a compiler flag, etc. And since just will run anything there's no reason why your complex bin scripts can't just be called from a simple one liner task in a justfile.
Could your write a bash script that does stuff like enumerate all the bin scripts, pull out documentation comments, etc.? Absolutely, and people have followed that pattern for a while (see https://github.com/qrush/sub) but it's a bunch of boilerplate to copy between projects. Just pulls out that logic into a simpler config file.
- Bash-Oneliner: A collection of handy Bash One-Liners and terminal tricks
- Bashly – Create beautiful bash scripts from simple YAML configuration
-
sd: my script directory
Many moons ago Basecamp published sub (github) which runs on a similar idea with different tradeoffs being chosen.
What are some alternatives?
fs-events
bashly - Bash command line framework and CLI generator
the-art-of-command-line - Master the command line, in one page
shfmt - Dockernized shfmt. This formats shell script.
ShellCheck - ShellCheck, a static analysis tool for shell scripts
tlog - Terminal I/O logger
utah - Dataframe structure and operations in Rust
hofmod-cli - Hofstadter generator for Golang CLIs
boost - Get started right. Become a shell native. This is the way.
tclmake - Partial make clone in pure Tcl
touched
vscode-bash-debug - Bash shell debugger extension for VSCode (based on bashdb)