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

25 lines
388 B
Markdown

---
title: rename
category: 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