dev-foodlist
"""
#
# Outputs shopping list
# based on http://pad.totalism.org/p/food items
# that have 'X ' at the beginning of the line
#
new-bits() {
    wget -qO- 'http://pad.totalism.org/p/food/export/txt' | grep '^X ' | grep -oP '(?<=X    [*] ).*'
    wget -qO- 'http://pad.totalism.org/p/food/export/txt' | grep -Po '^X.*[0-9.]+(?=€)' | grep -Po '[0-9.]+$' | awk '{s+=$1} END {print "Approx cost: "s"€"}'
}
"""

#Todo >matic:
    * take html export
    * pickup bolds


JavaScript license information


(Site generated by E2H, an "Etherpad hypermedia" project by @dcht00). Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


Edit Site

Talk