1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 19:17:58 +01:00

Merge pull request #284 from TechplexEngineer/patch-2

add the regex for whitespace replace
This commit is contained in:
Ruben Vereecken 2015-06-26 15:04:04 +02:00
commit cd10117073

View file

@ -2,7 +2,7 @@
> renames multiple files > renames multiple files
- Change foo to bar in matching files - Change foo to bar in matching filenames
`rename {{'s/foo/bar/'}} {{*.txt}}` `rename {{'s/foo/bar/'}} {{*.txt}}`
@ -13,3 +13,8 @@
- Replace whitespace with underscores - Replace whitespace with underscores
`rename --nows {{*.txt}}` `rename --nows {{*.txt}}`
`rename 's/\s+/_/g' {{*.txt}}`
- No action, just show what renames would occur
`rename -n {{'s/foo/bar/'}} {{*.txt}}`