Page 1 of 1

Trying to modify text with sed

PostPosted: Mon Dec 21, 2020 4:01 am
by technovangelist
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?

Re: Trying to modify text with sed

PostPosted: Mon Dec 21, 2020 11:37 am
by Mr_Noodle
Can you post the script?

Re: Trying to modify text with sed

PostPosted: Mon Dec 21, 2020 3:09 pm
by technovangelist
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.