mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-02 03:55:22 +02:00
add the regex for whitespace replace
Ubuntu's rename (included in perl 5.14.2) does not include -c or --nows
This commit is contained in:
parent
1cee2776a3
commit
2ab1bbefcd
1 changed files with 7 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
> renames multiple files
|
||||
|
||||
- Change foo to bar in matching files
|
||||
- Change foo to bar in matching filenames
|
||||
|
||||
`rename {{'s/foo/bar/'}} {{*.txt}}`
|
||||
|
||||
|
@ -13,3 +13,8 @@
|
|||
- 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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue