How to deal with whitespaces in OS X along filepaths when certain UNIX programs dislike it
In bash, there are two main ways to have spaces in path names:


Backslash escape the spaces



/path/to/folder\ with\ spaces/

Wrap with quote marks

"/path/to/folder with spaces and $variable/"




'/path/to/folder with spaces and a literal $/'


Double quote marks expand shell variables. Single quote marks do not.