mirror of https://github.com/CrimsonTome/tldr.git
21 lines
349 B
Markdown
21 lines
349 B
Markdown
# 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}}`
|