echo '
foo
' | perl -pe 's/<.*?>//g' # output: ## #### 2 >= 1 #### lynx --dump