From 20dea73b12b52899bfff59fcd5aa210ca63e9edf Mon Sep 17 00:00:00 2001 From: David Kilias Date: Fri, 10 Apr 2020 15:17:58 +0200 Subject: [PATCH] use variables in usage examples --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1ec25c5..e23109c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ ```bash echo "Max Hackerberg\nLeibnizstr. 32\n39104 Magdeburg" | python address-label.py -jq -r .stammdaten.address_label ../Vorstand/stammdaten-formular/example.json | python address-label.py +MEMBERFILE="../Vorstand/stammdaten-formular/example.json" +jq -r .stammdaten.address_label $MEMBERFILE | python address-label.py ``` ### Print label @@ -15,5 +16,6 @@ Needs to be in the same network as the printer. ```bash echo "Max Hackerberg\nLeibnizstr. 32\n39104 Magdeburg" | address-label.sh -jq -r .stammdaten.address_label ../Vorstand/stammdaten-formular/example.json | address-label.sh +MEMBERFILE="../Vorstand/stammdaten-formular/example.json" +jq -r .stammdaten.address_label $MEMBERFILE | address-label.sh ``` \ No newline at end of file