#!/bin/sh # 99dec14 - john meister - spaceBgone # # see SW Expert December 1999 pg 24, # Working with the Dark Side, by Peter Collinson # # recursive dark side repair technique # eliminates spaces in file names from current directory down # useful for supporting systems where clueless vendors promote NT # for name in `find . -depth -print` do na=`echo "$name" | tr ' ' '_'` if [ "$na" != "$name" ] then echo "$name" fi done #!/bin/sh # 99dec14 - john meister - spaceBgone # # see SW Expert December 1999 pg 24, # Working with the Dark Side, by Peter Collinson # # recursive dark side repair technique # eliminates spaces in file names from current directory down # useful for supporting systems where clueless vendors promote NT # for name in `find . -print` do na=`echo "$name"|tr ' ' '_'` if [ "$na" != "$name" ] then echo mv "$name" ] mv "$name" "$na" fi done