renamefiles: Rename a bunch of files in a directory with the same regex...

Description Usage Arguments Value Author(s) Examples

View source: R/renamefiles.r

Description

For example, a file name may have spaces, and you can replace them with "_".

Usage

1
renamefiles(dir, pattern, replacement)

Arguments

dir

Path to directory for which you want to change the file names.

pattern

Pattern in file name to replace.

replacement

Text to replace pattern with.

Value

Prints "Operation complete" to console when done; look at files in directory 'dir' for changes.

Author(s)

Scott Chamberlain [email protected]

Examples

1
2
3
4
## Not run: 
renamefiles("~/test", " ", "_")

## End(Not run)

sckott/sacbox documentation built on May 26, 2017, 3:47 a.m.