mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 17:06:02 +02:00
commit
ceb00f1616
1 changed files with 15 additions and 0 deletions
15
common/rename.md
Normal file
15
common/rename.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue