Tuesday, July 18, 2006

Simple shell script to remove spaces from file names

#! /usr/bin/bash
for file in *\ *;
do
mv "$file" "${file// /_}"
done

comes in handy for prepping pdf docs for the Web

Listen to this article Listen to this article

0 Comments:

Post a Comment

<< Home