You're replying to a comment by FernandoBasso.

FernandoBasso Permalink
March 07, 2015, 12:42

@vignesh,

This is one possible solution for your question:

sed $'s/\.$/\\n/' < nl.txt

It uses a special shell quoting mechanism to insert a newline. It should work on Bash, Zsh, Ksh, and possibly other shells.

Join #Sed on freenode.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "security_95": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.