Name: Anonymous 2009-11-28 16:25
So, like, guise, I have this bash script that `find`s all of the images in a directory and performs a task on them, but shit goes down when the path has spaces in it.
Like, say I have a path ~/blah.jpg, it performs the task on ~/blah.jpg, but if I have shit like ~/blah 2.jpg, it tries to do it to ~/blah and 2.jpg, which sucks total ass.
How can I fix dat shit, my /prog/ niggas?
Inb4 "Herp derp spaces in unix".
Like, say I have a path ~/blah.jpg, it performs the task on ~/blah.jpg, but if I have shit like ~/blah 2.jpg, it tries to do it to ~/blah and 2.jpg, which sucks total ass.
How can I fix dat shit, my /prog/ niggas?
Inb4 "Herp derp spaces in unix".