How to replace new lines with tab characters
Posted
by benjamin button
on Stack Overflow
See other posts from Stack Overflow
or by benjamin button
Published on 2009-10-24T11:23:50Z
Indexed on
2010/03/24
12:33 UTC
Read the original article
Hit count: 200
hi i have pattern like below
hi
hello
hallo
greetings
salutations
no more hello for you
i am trying to replace all new lines with tab spaces using the following command
sed -e "s_/\n_/\t_g"
but its not working . could nybody pls help? i need the solution in sed /awk.
© Stack Overflow or respective owner