/ssg/ - Shell Scripting General: Sed & Awk edition

Shell scripting general. Post your shell scripts and give feedback on other anons'. Discuss command line utilities and useful programs. Shitpost about bash vs. zsh vs. ksh vs. fish. Share your dotfiles. Have fun.

>Resources for learning / improving
tldp.org/LDP/abs/html/ - Advanced Bash-Scripting Guide: An in-depth exploration of the art of shell scripting.
shellcheck.net/ - Shell script analysis tool. Catches syntax errors and bad code. Available from the command line.
explainshell.com/ - Paste a shell command and it will explain the commands and arguments.
Reading the manpages is actually often quite helpful.

>Collections of Utilities
gnu.org/software/coreutils/coreutils.html - GNU Coreutils: The basic collection of Unix utilities.
joeyh.name/code/moreutils/ - Moreutils: A collection of "missing" utilities from coreutils.
suckless.org/ - Suckless: Minimal and composable programs and utilities.

>Videos to get you in the mood
youtu.be/8E8sUNHdzG8 - Luke Smith: Layin' down Pipes like a Unix Chad
youtu.be/w_37upFE-qw - Luke Smith: Unix Chad JUST WON'T STOP Piping!
youtu.be/QaGhpqRll_k - Luke Smith: Using `sed` and Regular Expressions

>Topics of conversation
Good composable programs that you've found.
Tips and tricks you've recently discovered.
Scripts you've written to improve your workflow.

Attached: sed-and-awk.jpg (1280x720, 125K)

Other urls found in this thread:

mywiki.wooledge.org/BashFAQ
github.com/boyEstrogen/Anime-Girls-Holding-Programming-Books
twitter.com/SFWRedditVideos

mywiki.wooledge.org/BashFAQ is a good source too.

You know, not everything needs a general. Better than 90% of the rest of this crap board anyway.

use jq

This resource is a lot better than TLDP. IMHO TLDP is actually a shit resource.

cd ..
dir
cd ../..
dir
cd ..

this but compile from source, stable versions are slow as fuck

Luke is a brainlet when it comes to shell scripting

GNU Coreutils aren't Unix utilities. They have been written from scratch for the GNU system. It's not only wrong to call these things Unix utilities, it also gets you into legal trouble or fun (depending on the POV): Years ago, the Linux kernel team actually got lawsuits for stealing proprietary Unix code in its system and utilities.
Judt call them GNU utilities.

Agreed. He's riding the POSIX train.