rfllka.blogg.se

Mac os x terminal filenames with spaces
Mac os x terminal filenames with spaces













mac os x terminal filenames with spaces

ShortName=`echo $FileName | sed 's/ //g'`ĭone # results in changing the filename to "/Users/Kurt/NameWithSpaces" # sqzspaces.sh "/Users/Kurt/Name With Spaces" # passed to it (handles an arbitrary number of files on the command line). # this shell script removes the spaces out of the name of every file argument Read the rest of the article for the script and a method for using it from the Finder instead of the Terminal. I finally wrote a shell script that squeezes the spaces out of file names Perhaps you're like me, and have several years worth of JPEG files with names like "Aunt Sue's Birthday.jpg" These are a pain to deal with when putting together a web page, because most browsers don't handle spaces in file names well - you have to escape them with %20 or similar.















Mac os x terminal filenames with spaces