Software Engineer's Blog

Blog posts — page 28

Batch Rename Files Using 'rename' and Regex

Linux

Batch Rename Files Using 'rename' and Regex

Jason Yang · 12 Nov, 2025

Bulk-rename files in Linux with the rename command and Perl regex: normalize whitespace, strip unwanted metadata, and batch-rename in one quick command.

1. Two Sum

Coding Interview

1. Two Sum

Jason Yang · 11 Nov, 2025

Two Sum (LeetCode 1) two ways: the brute-force O(n^2) scan vs the hash-map O(n) approach — with the intuition, edge cases, and the space-time trade-off.