Add rename.md
This commit is contained in:
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}}`
|
Reference in New Issue
Block a user