mirror of https://github.com/CrimsonTome/tldr.git
16 lines
225 B
Markdown
16 lines
225 B
Markdown
|
# rename
|
||
|
|
||
|
> renames multiple files
|
||
|
|
||
|
- Change foo to bar in matching files
|
||
|
|
||
|
`rename {{'s/foo/bar/'}} {{*.txt}}`
|
||
|
|
||
|
- Convert to lower case
|
||
|
|
||
|
`rename -c {{*.txt}}`
|
||
|
|
||
|
- Replace whitespace with underscores
|
||
|
|
||
|
`rename --nows {{*.txt}}`
|