Browsing Tag
bash
105 posts
How to Create a Bash Password Generator
Every few months I find myself needing a fresh, strong password for a new server, a database user,…
How to Use Case Statements in Bash
When I first started writing Bash scripts, I leaned on long chains of if/elif/else for everything. It worked,…
How to Parse JSON in Bash
The first time I had to pull a single field out of a JSON API response inside a…
How to Download Files with Bash
I download files from the command line more times a day than I’d like to admit — installers,…
How to Create a Bash Web Scraping Tool
I’ll admit upfront: Bash is not the tool most people reach for when they think “web scraping.” Python…
How to Send Email from Bash
One of the most useful things I’ve automated with Bash is email alerts — a backup script that…
How to Access System Information in Bash
Whenever I’m debugging a slow server, writing a health-check script, or just building a status dashboard, the first…
How to Work with Dates and Times in Bash
Dates and times show up in almost every script I write — timestamping log entries, naming backup files,…
How to Generate Random Numbers in Bash
Random numbers show up in more of my scripts than I initially expected — generating test data, picking…
How to Create a Bash Calculator
Bash gets a bad reputation for math, and honestly, it’s a little deserved — the shell’s built-in arithmetic…