Skip to content

vaclavbenes/ren

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ren

rename multiples files with command ren 🤼‍♂️

Usage

  • ren.ts {old_string} {new_string} {files}| *.txt
  • ren.ts --show # show rename files
  • ren.ts --force # rename files
  • ren.ts # defaut copy files with new name

Install

./install.ts

examples

deno run -A --unstable ren.ts --show "ocean_" "beach_{10..11}" data/ocean_{1,2}.png

> ocean_1.png -> beach_101.png
> ocean_2.png -> beach_112.png

deno run -A --unstable ren.ts --show "ocean_" "beach_" data/ocean_{1,2}.png

> ocean_1.png -> beach_1.png
> ocean_2.png -> beach_2.png

deno run -A --unstable ren.ts --show "*" "beach_" data/ocean_{1,2}.png

> ocean_1.png -> beach_
> ocean_2.png -> beach_

deno run -A --unstable ren.ts --show "*" "beach_{1..2}.png" data/ocean_{1,2}.png

> ocean_1.png -> beach_1.png
> ocean_2.png -> beach_2.png

deno run -A --unstable ren.ts --show "" "beach_{1..2}.png" data/ocean_{1,2}.png

# ignore
> ocean_1.png -> beach_1.png
> ocean_2.png -> beach_2.png

deno run -A --unstable ren.ts --show "*" "{1..2}beach.png" data/ocean_{1,2}.png

> ocean_1.png -> 1beach.png
> ocean_2.png -> 2beach.png

About

rename multiple files with deno

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published