Menu

gitpiper

rename Cheat Sheet in April 2024

Last Updated: 11 April 2024

README.md

Installation

brew install rename

See: http://plasmasturm.org/code/rename/

Regex substitution

rename 's/hello/world/' *.txt

Rename hello.txt to world.txt and so on in *.txt.

Replace extension

rename -s .png .jpg.png *.png

Replace .png with .jpg.png in *.png.

Options

Option Description
-n Simulation
-l Symlink instead of rename
-i Interactive

Also see


338+ more cheat sheets for you in April 2024

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2024 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️