1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-05-30 06:25:14 +00:00
tgbotapi/changelog_info_retriever

25 lines
373 B
Plaintext
Raw Permalink Normal View History

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