Bash Scripting: Everything you need to know about Bash-shell programming
Bash (AKA Bourne Again Shell) is a type of interpreter that processes shell commands. A shell interpreter takes commands in plain text format and calls Operating System services to do something. For example, ls command lists the files and folders in a directory.
—
https://medium.com/sysf/bash-scripting-everything-you-need-to-know-about-bash-shell-programming-cd08595f2fba
Asides
30 Bash Script Examples
30 Bash Script Examples
This article will help you to get the basic idea on bash programming. Most of the common operations of bash scripting are explained with very simple examples
—
https://linuxhint.com/30_bash_script_examples/
frangipanni
frangipanni
Program to convert lines of text into beautiful tree structures. The program reads each line on the standard input in turn. It breaks each line into tokens, then adds the sequence of tokens into a tree structure. Lines with the same leading tokens are placed in the same branch of the tree.
—
https://github.com/birchb1024/frangipanni
Do Not Use ‘>’ in Your Command P
Do Not Use ‘>’ in Your Command Prompt (and How to Stay Safe in Shell)
Over the years of troubleshooting performance problems in the Unix/Linux world, I have seen multiple cases where a regularly used command line tool in a customer server just stops working for some reason. The tool just returns immediately, doing absolutely nothing.
—
https://tanelpoder.com/posts/how-to-stay-safe-in-shell/
sd: my script directory
sd: my script directory
Hi! You’re reading an old post, and some of might be out of date. Check out this newer post for an update on the state of sd, or jump straight to the GitHub repo for the latest news. sd is a command on my PATH. It dispatches its arguments to my script directory.
—
https://ianthehenry.com/posts/sd-my-script-directory/
Performance comparison: counting
Performance comparison: counting words in Python, Go, C++, C, AWK, Forth, and Rust
Summary: I describe a simple interview problem (counting frequencies of unique words), solve it in various languages, and compare performance across them. For each language, I’ve included a simple, idiomatic solution as well as a more optimized approach via profiling.
—
https://benhoyt.com/writings/count-words/#unix-shell
Well-behaved alias commands on W
Well-behaved alias commands on Windows
Since its inception I’ve faced a dilemma with w64devkit, my all-in-one Mingw-w64 toolchain and development environment distribution for Windows. A major goal of the project is no installation: unzip anywhere and it’s ready to go as-is.
—
https://nullprogram.com/blog/2021/02/08/
The Ultimate Programmer’s Guide
The Ultimate Programmer’s Guide to Bash Scripting
Bash scripts allow you to automate command-line tasks. For example, watch this video. The video shows how to automate creating a YouTube channel with Bash scripts. After watching it, you may want to create your own YouTube channel.
—
https://medium.com/better-programming/the-ultimate-programmers-guide-to-bash-scripting-2d11d4e6e978
Apple Silicon and Shell Scripts
Apple Silicon and Shell Scripts
On November 10, Apple unveiled the latest iteration of MacBook Pro, Air, and Mac Mini with its in-home Apple Silicon M1 chip.
—
https://medium.com/better-programming/apple-silicon-and-shell-scripts-3207cf1f88c5
Readable Bash Scripts
Readable Bash Scripts
I really love the feeling of writing a bash pipeline. It’s fun to string commands together, peek at the output, add another couple pipes to massage the data closer to my goal. I even gave a short class on them: bgschiller/shell-challenges.
—
https://brianschiller.com/blog/2021/01/07/readable-bash-scripts