This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |