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 myrmecocystus@gmail.com

Examples

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

## End(Not run)

sckott/sacbox documentation built on Sept. 3, 2020, 7:22 p.m.