Jump to content

Single quotes messing up workflow


Recommended Posts

I'm trying to modify the AppendText2File workflow so that if the text to be appended has a single quote inside it the workflow doesn't break.

 

Here's the relevant portion of the workflow:

dt=`date` 
## append to the original file
echo "* "$dt" -- "{query} >> $original

What do I do to strip out single quotes (or replace them with something bash/Alfred doesn't hate)?

Edited by philipmorgan
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...