|
|
@ -3,8 +3,9 @@ |
|
|
|
url='https://kafeterya.metu.edu.tr/' |
|
|
|
url='https://kafeterya.metu.edu.tr/' |
|
|
|
outfile='kafe.txt' |
|
|
|
outfile='kafe.txt' |
|
|
|
|
|
|
|
|
|
|
|
echo "# Günün yemeği:" >> ${outfile} |
|
|
|
echo "# Günün yemeği:" > ${outfile} |
|
|
|
echo "## Öğle:" >> ${outfile} |
|
|
|
echo "## Öğle:" >> ${outfile} |
|
|
|
curl -s ${url} | grep "<h2>" | cut -d '>' -f3 | cut -d '<' -f1 | sed -e 's/<[^>]*>//g' -e '/*/d' -e 's/^/+ /g' -e 's/./\L&/g4' | sed '5,10d'| less >> ${outfile} |
|
|
|
curl -s ${url} | grep "<h2>" | 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} |
|
|
|
echo "## Akşam:" >> ${outfile} |
|
|
|
curl -s ${url}| grep "<h2>" | 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} |
|
|
|
curl -s ${url}| grep "<h2>" | 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} |
|
|
|