I need a bash script that will take a file and add a second \n character for every \n character already in the file:
that is:
abcd\nbcda
becomes
abcd\n\nbcda
how do I start. OR, should I write it in another language and wrap it in bash?
|
I need a bash script that will take a file and add a second \n character for every \n character already in the file: that is:
becomes
how do I start. OR, should I write it in another language and wrap it in bash? |
|||
|
|
or
or
|
||||
|
|
|
A very very simple way to do it.
|
|||||||||||
|