How to replace new lines with tab characters
- by benjamin button
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.