o
odin.langpkg.dev
packages / library / files-rename

files-rename

0ce6b5alibrary

No description provided.

BSD-2-Clause · updated 2 years ago

files-rename

A long long time ago I asked myself:

what the f*ck is this?

Get-ChildItem *.txt | Rename-Item -NewName { $_.Name -replace '\.txt','.log' }

So... Now, after my File Renamer crashed one too many times, I wrote my own bulk* file renamer cli.

fr.exe [path] selector find replace [-h] [--no-colors]

path - path to folder, where the files are located
selector - regex for selecting specific files ( also partially does this)
find - regex for text to replace it is, by default global(/.../g)
replace - regex to replace the text with
-y - y[es], automatically confirms replacement
--no-colors - disables ansi codes`

I actually remembered to publish something to Github again, huh...