Unix Script (Bourne) to Remove Spaces in File Names

Posted on December 26, 2012 by quashnsa

#!/bin/sh
find . -name '* *' | while read file;
do
target=`echo "$file" | sed "s/ /_/g"`;
if [ -f $target ]
then
echo "File Exists: $target";
else
echo "Renaming '$file' to '$target'";
mv "$file" "$target";
fi
done;

Christmas 2012

Posted on December 25, 2012 by quashnsa

As always, it was a good year. Spent time with both sides of the family. We had to take our puppies with us--Jak Jak had kennel cough. Ate too much food, had too many laughs, had too little time with my brother, but it was a good time. My nephew broke his arm and had to go to the ER, he is doing well now.