This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grn='\e[0;32m' | |
red='\e[0;31m' | |
clr='\e[0m' | |
for i in $1/*; do | |
fn=$(basename $i) | |
# comment keys | |
grep -qc '^# \?key' $i | |
ckeyworks=$? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Gets lowest price of an item listen on geizhals.de | |
item="$1" | |
url="https://geizhals.de/${item}.html" | |
price=$(curl -s "$url" | grep lowPrice | sed 's/.*gh_price\">\&euro\;\ \([0-9]\+\),\([0-9]\{2\}\).*/\1.\2€/') | |
echo $price |
NewerOlder