Skip to content

Instantly share code, notes, and snippets.

@kosho
Last active January 30, 2017 05:17
Show Gist options
  • Save kosho/d4e8b6dcb1dc395ce8e600b1901cfe1f to your computer and use it in GitHub Desktop.
Save kosho/d4e8b6dcb1dc395ce8e600b1901cfe1f to your computer and use it in GitHub Desktop.
Remove code blocks from asciidoc
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