Skip to content

Tag: scripting

All the articles with the tag "scripting".

Bash for loops sequential counting

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

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.

Logrotate & Compression

Logrotate & Compression

Updated:

logrotate keeps your /var/log from eating the disk — configure rotation schedules, compression, and retention for any service log.

Bulk rename files in bash

Bulk rename files in bash

Updated:

Remove spaces and special characters from filenames using bash loops, rename, find, and parameter expansion tricks.

Sed 101

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.