Trying to modify text with sed

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Trying to modify text with sed 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?
technovangelist
 
Posts: 2
Joined: Mon Dec 21, 2020 3:57 am

Re: Trying to modify text with sed Mon Dec 21, 2020 11:37 am • by Mr_Noodle
Can you post the script?
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Trying to modify text with sed 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.
technovangelist
 
Posts: 2
Joined: Mon Dec 21, 2020 3:57 am


Return to Support