[svlug] Working with spaces in shell scripts

Nathan nathank at netflip.com
Tue Dec 14 15:15:15 PST 2004


I want to remove the some files from inside a bunch of directories with
spaces in the names. But when my script hits a directory with a space in
its name the script will treat it as two separate directories (ie
"Monkey Joe" becomes "Monkey" and "Joe"). Can this even be done with a
shell script? Should I break down and use perl? 

Thanks,
Nathan 





More information about the svlug mailing list