Tag: scripting
All the articles with the tag "scripting".
-
Bash for loops sequential counting
Updated:Master bash for loops, while loops, and seq for sequential counting — iterate over files, ranges, and arrays without losing your mind.
-
Directory FileCount
Updated:Count files in a directory (recursively or not) with find, ls, and tree — quick one-liners for when du just isn't telling you enough.
-
Linux CLI Tarball Extraction — Flags, Formats, Gotchas
Updated:Extract tar.gz, tar.bz2, tar.xz — flags demystified, compression compared, directory extraction, and the gotchas that trip you up.
-
Logrotate & Compression
Updated:logrotate keeps your /var/log from eating the disk — configure rotation schedules, compression, and retention for any service log.
-
MySQL CLI: From Connection to Maintenance
Updated:Master MySQL from the command line: connect, query databases, manage users, repair tables, optimize—everything you keep Googling, one reference.
-
Bulk rename files in bash
Updated:Remove spaces and special characters from filenames using bash loops, rename, find, and parameter expansion tricks.
-
Sed 101
Updated:sed is the stream editor for making text substitutions, deletions, and insertions in files — the patterns you'll use 90% of the time.
-
make for Project Automation (It's Not Just for C Code)
Forget bash scripts scattered across your repo. make is a simple task runner that's been around for 50 years and works everywhere.
-
Git Hooks You Should Be Using Locally Right Now
Stop committing broken code. Git hooks catch mistakes before they hit CI, save hours of debugging, and make your team love you.
-
Bulk File Renaming on Linux: rename, vidir, fd
Master bulk file renaming on Linux with rename, vidir, fd, and mmv. The right tool for every scenario from regex rewrites to visual editing.
-
Building CLI Tools in Go: Because Shell Scripts Have a Maximum Complexity
Shell scripts hit a complexity wall. Go gives you a single binary, fast startup, great stdlib, and goreleaser for proper distribution. Here's how to build real CLI tools.
-
Your First Open Source Contribution: Less Scary Than You Think, More Useful Than You Know
Make your first open source contribution without embarrassing yourself. Find good first issues, fork correctly, write real PR descriptions, and handle review like a pro.