25 lines
390 B
Markdown
25 lines
390 B
Markdown
---
|
|
title: rename
|
|
layout: default
|
|
---
|
|
|
|
### 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
|