#!/bin/sed -f

# This little sed script takes the output from Pantry's paste report
# and edits it so that you can paste the results into an input file
# for the addRecipes script. Copy the script into a file that is in
# your PATH, and then make it executable with chmod. Then, say for
# instance you want oregano as an ingredient, but you are unsure of
# the exact name of the one you want or what available unit you
# want. Just run
#
# pantry -isn oregano -p pa master | ingrlist
#
# which will present you with the choices. Use GNU screen or your
# terminal's cut and paste to paste the line you want into an input
# file for the addRecipes script, insert a quantity into the second
# pair of double quotes, and add a comment into the last pair of
# double quotes (if you want to, otherwise just leave the last pair
# of double quotes there.)

s/pantry -xsn //
s/-cu/""/
s/ "master"/ ""/
