From 32bd901db629243386ac94c8b1e5cf034930a3ab Mon Sep 17 00:00:00 2001 From: Efe Date: Wed, 13 Oct 2021 19:00:10 +0300 Subject: [PATCH] =?UTF-8?q?bozulup=20durma=20art=C4=B1k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kafeterya.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kafeterya.sh b/kafeterya.sh index f916783..4a6f4b4 100755 --- a/kafeterya.sh +++ b/kafeterya.sh @@ -3,8 +3,9 @@ url='https://kafeterya.metu.edu.tr/' outfile='kafe.txt' -echo "# Günün yemeği:" >> ${outfile} +echo "# Günün yemeği:" > ${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 -e '\n' >> ${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}