Shell One-Liner: Replace spaces in filenames with underscores

Linux One Liners

Replace spaces in filenames with underscores

 

 

How this script works and how to use it:

  • This script will replace spaces in file names with underscores
  • It will do this in the directory that you are currently in
  • This rewrites all the files with underscores
  • It uses the mv command to do its job

For more Shell one-liners – click here

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Updated on October 28, 2021

Pixelated Dwarf