KaleyKrim / rename-files

cli tool to rename files matching specified filename in current directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File renaming tool

  • simple CLI tool to rename all files in current directory containing specified string

Build

  1. go build

Usage

Add prefix

  • ./file-renamer ${stringContainedInfilesToRename} prefix ${prefixToAdd}

Example:

./file-renamer test prefix 02/03/2020test.js, testing.exe, testttttttt => 02/03/2020-test.js, 02/03/2020-testing.exe, 02/03/2020-testttttttt

Add suffix

  • ./file-renamer ${stringContainedInfilesToRename} suffix ${suffixToAdd}

Example:

./file-renamer test suffix newtest.js, testing.exe, testttttttt => test-new.js, testing-new.exe, testttttttt-new

Rename

  • ./file-renamer ${stringContainedInfilesToRename} ${newName}

Example: ./file-renamer test coolCatPicstest.js, testing.exe, testttttttt => coolCatPics1.js, coolCatPics2.exe, coolCatPics3

About

cli tool to rename files matching specified filename in current directory


Languages

Language:Go 100.0%