#!/bin/bash
find | while read FN;do mv "$FN" "`echo $FN | sed -e 's/ /_/g'`";done
Showing posts with label linux filesystem. Show all posts
Showing posts with label linux filesystem. Show all posts
Tuesday, 8 September 2009
Replace Spaces in Filenames
As noted in the previous post spaces in file names break many scripts so here is a quick script to replace all spaces in file names with an _
Subscribe to:
Posts (Atom)