Bulk rename files in bash
Remove spaces and special characters from filenames using bash loops, rename, find, and parameter expansion tricks.
All the articles with the tag "scripting".
Remove spaces and special characters from filenames using bash loops, rename, find, and parameter expansion tricks.
Fix 'Argument list too long' in bash when cp or rsync chokes on thousands of files, glob loops, find + xargs, and the ARG_MAX reason behind it.
Master bash for loops, while loops, and seq for sequential counting, iterate over files, ranges, and arrays without losing your mind.
Repair and optimize all MySQL databases at once with mysqlcheck, a one-liner that runs on every table without logging into MySQL.
Extract tar.gz, tar.bz2, tar.xz, flags demystified, compression compared, directory extraction, and the gotchas that trip you up.
Master MySQL from the command line: connect, query databases, manage users, repair tables, optimize, everything you keep Googling, one reference.
Rename files to remove spaces and special characters using bash, rename, tr, and parameter expansion patterns for bulk file cleanup.
logrotate keeps your /var/log from eating the disk, configure rotation schedules, compression, and retention for any service log.
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.
tar, gzip, bzip2, xz, zip, demystified. When to use each compression tool, speed vs ratio trade-offs, and the flags you'll actually need.
sed is the stream editor for making text substitutions, deletions, and insertions in files, the patterns you'll use 90% of the time.