mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2026-08-15 13:34:53 +02:00
Update.
This commit is contained in:
22
rename.md
Normal file
22
rename.md
Normal file
@@ -0,0 +1,22 @@
|
||||
title: rename
|
||||
---
|
||||
|
||||
### 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
|
||||
Reference in New Issue
Block a user