Considering characters like .,"'/ etc


#1

asdjjlkjsda18273981723%^&^()*)(
The give solution will fail.
If we assume special charaters except new line, Then the following would do good
cat input | tr -cd “[\n0-9]” | grep .