Skip to content

Instantly share code, notes, and snippets.

View gist:db9f9acaad01bd6dbf4fb652dad84d05
Hi Mislav,
During our interview, I mentioned some uses of the Linux shell that
twisted my brain. Here's a script demonstrating two of them: process
substitution and piping to bash.
This script prints commands to rename the files provided on the
command line. The new names will be consecutive integers: 1, 2, 3, 4...
The script is safe to run -- it makes no modifications to your system.