Trying to modify text with sed in a shell script. Runs fine from the command line but cannot do it in hazel. Spaces in the file name seem to screw it up. Tried wrapping $1 in quotes but nothing works. Anyone have an example?
the problem was that hazel defaults to using your current shell. So when using shell scripts i need to go in and ensure it is set to /bin/bash or add the #!/bin/bash at the top. That wasn't obvious.