1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 00:57:13 +00:00
tgbotapi/changelog_info_retriever

30 lines
345 B
Plaintext
Raw Normal View History

2020-09-22 09:15:20 +00:00
#!/bin/bash
function parse() {
version=$1
read -r
while [ -z "`echo $REPLY | grep -e "^#\+ $version"`" ]
do
read -r
done
read -r
while [ -z "`echo $REPLY | grep -e "^#\+"`" ]
do
echo "$REPLY"
read -r
done
}
2020-09-22 09:15:20 +00:00
version=$1
file=$2
if [ -n "$file" ]; then
parse $version < "$file"
else
parse $version
fi
2020-09-22 09:15:20 +00:00