file-rename

file-rename

TLDR

Rename files using a Perl Common Regular Expression (substitute 'foo' with 'bar' wherever found)

>_ rename ['s/foo/bar/'] [*]
copy

Dry-run - display which renames would occur without performing them

>_ rename -n ['s/foo/bar/'] [*]
copy

Force renaming even if the operation would remove existing destination files

>_ rename -f ['s/foo/bar/'] [*]
copy

Convert filenames to lower case (use -f in case-insensitive filesystems to prevent "already exists" errors)

>_ rename 'y/A-Z/a-z/' [*]
copy

Replace whitespace with underscores

>_ rename 's/\s+/_/g' [*]
copy

Copied to clipboard
free 100$ digital ocean credit