bash
This is an old revision of the document!
−Table of Contents
Bash
The Bourne Again Shell is the default command language / shell in Linux, and I've never bothered to try any other. You type stuff in (or paste it from stackexchange…) and useful stuff happens.
Examples
Randomised file names
for file in *.jpeg; do mv -- "$file" "$RANDOM.jpeg" done
for file in *.jpeg; do mv -- "$file" "$(mktemp --dry-run XXXXXXXX.jpeg)" done
See Also
- GNU Bash - Homepage
bash.1646090307.txt.gz · Last modified: 2022/03/01 10:18 by rjt