Last active
January 30, 2017 05:17
-
-
Save kosho/d4e8b6dcb1dc395ce8e600b1901cfe1f to your computer and use it in GitHub Desktop.
Remove code blocks from asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flag="0" | |
while read x | |
do | |
if [[ $x == "-----"* ]]; then | |
if [ $flag == "0" ] | |
then flag="1" | |
else flag="0" | |
fi | |
else | |
if [ $flag == "0" ] | |
then echo "$x" | |
fi | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment