1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2026-01-13 22:42:02 +01:00
cheatsheets/rename.md
2015-11-24 16:11:34 +11:00

388 B

title, category
title category
rename CLI

Installation

# http://plasmasturm.org/code/rename/
  brew install rename

Examples

# Rename hello.txt to world.txt and so on
  rename 's/hello/world/' *.txt

# Search and replace
  rename -s .png .jpg.png *.png

Options

-n    # Simulation
-l    # Symlink instead of rename
-i    # Interactive