Coderwall
Ruby Python JavaScript Front-End Tools iOS
More Tips
Ruby Python JavaScript Front-End Tools iOS PHP Android .NET Java Jobs
Jobs
Sign In or Up
Last Updated: February 25, 2016
·
666
· wrndl

Batch rename based on a regulard expression in OS X

#terminal
#osx
#regular expression
#batch rename
for i in *.ending; do mv "$i" "`echo $i | sed 's/OLD/NEW/g'`"; done
#terminal
#osx
#regular expression
#batch rename

Written by Alexander Woerndl

Say Thanks
Respond

Related protips

Use ⌥ ← and ⌥→ to jump forwards / backwards words in iTerm 2, on OS X

337.7K
46

Determine OS X version from the command line

132.2K
1

Customize terminal with oh-my-zsh

74K
3

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Terminal Authors
e-dard
337.7K
#terminal
#Python
#Shell
kevinelliott
132.2K
#terminal
#ruby
#ios
itseranga
113.8K
#terminal
#cryptography
#docker
rawswift
66.09K
#terminal
#PHP
#Pascal
mikker
63.11K
#terminal
#Ruby
#Objective-C
Related Tags
#terminal
#osx
#regular expression
#batch rename
Sponsored by
#native_company#
#native_desc#
#native_cta#
Filed Under

Tools
Awesome Job
See All Jobs

Post a job for only $299
Thanks to our sponsor
Sponsored by #native_company# — Learn More
#native_title# #native_desc#
#native_cta#
@coderwall
APM product comparisons Contact Privacy Terms

Copyright 2025

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.