mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-02 05:17:58 +01:00
354 B
354 B
rename
Renames multiple files.
- Change foo to bar in matching filenames:
rename {{'s/foo/bar/'}} {{*.txt}}
- Convert to lower case:
rename -c {{*.txt}}
- Replace whitespace with underscores:
rename --nows {{*.txt}}
rename 's/\s+/_/g' {{*.txt}}
- No action, just show what renames would occur:
rename -n {{'s/foo/bar/'}} {{*.txt}}