From 744bf17dc389a2a25ead57d80f52de838250ed33 Mon Sep 17 00:00:00 2001 From: Efe Date: Wed, 13 Oct 2021 18:27:43 +0300 Subject: [PATCH] =?UTF-8?q?s=C3=BCrekli=20bunu=20mu=20g=C3=BCncellicez=20y?= =?UTF-8?q?a=20kdjskd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kafeterya.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kafeterya.sh b/kafeterya.sh index 75e9f1e..f916783 100755 --- a/kafeterya.sh +++ b/kafeterya.sh @@ -4,5 +4,7 @@ url='https://kafeterya.metu.edu.tr/' outfile='kafe.txt' echo "# Günün yemeği:" >> ${outfile} -curl -s ${url} | grep "

" | cut -d '>' -f3 | cut -d '<' -f1 | sed -e 's/<[^>]*>//g' -e '/*/d' -e 's/^/+ /g' -e 's/./\L&/g4' | sed '5,6d'| less >> ${outfile} - +echo "## Öğle:" >> ${outfile} +curl -s ${url} | grep "

" | cut -d '>' -f3 | cut -d '<' -f1 | sed -e 's/<[^>]*>//g' -e '/*/d' -e 's/^/+ /g' -e 's/./\L&/g4' | sed '5,10d'| less >> ${outfile} +echo "## Akşam:" >> ${outfile} +curl -s ${url}| grep "

" | cut -d '>' -f3 | cut -d '<' -f1 | sed -e 's/<[^>]*>//g' -e '/*/d' -e 's/^/+ /g' -e 's/./\L&/g4' | sed '5,10!d'| sed '5,6d' | less >> ${outfile}