Skip to navigation

Gustavo Saiani

Gustavo Saiani

Software, finance, books, painting, psychology, cycling

  • Home
  • Return to Content

March 30, 2016

Replacing spaces for underscores in batches of files

For Mac OS.

Install rename. I use homebrew, so:

brew install rename

To rename all files in folder, you can do:

rename "s/ /_/g" *

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)

Related

  • Shell, Software
  • Comments Off on Replacing spaces for underscores in batches of files
  • gusaiani

Post navigation

3 Dias como Mentor no Navecamp
Resizing images by percentage, in batch, from the command line

Recent Posts

  • (no title)
  • Carta da Parceria de Investimentos β€” 2024
  • Fogueira
  • Carta da Parceria de Investimentos β€” 2023
  • Italy Divide 2022 β€” Terra Santa

Archives

  • 2025
  • 2024
  • 2023
  • 2022
  • 2021
  • 2020
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015

Categories

  • Books
  • Cycling
  • Elixir
  • Entrepreneurship
  • Finance
  • Graphic Design
  • Investing
  • Javascript
  • Management
  • My Year In…
  • Painting
  • Phoenix
  • Poemas
  • Productivity
  • Psychology
  • React.js
  • Recruiting
  • Ruby on Rails
  • Shell
  • Software
  • Webpack

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy