For Every File: for Loops

A for loop runs the same commands once for every word, number or file in a list, so renaming 12 files or 200 takes one line, with ${f%.tmp} cutting the old ending off each name.

Updated

Cheat sheet for the lesson For Every File: for Loops: A for loop runs the same commands once for every word, number or file in a list, so renaming 12 files or 200 takes one line, with ${f%.tmp} cutting the old ending off each name.
Category
Bash
Level
Apprentice
Tags
brace-expansion, for-loop, glob, linux, loop, parameter-expansion, unix