given below will work except tab at beginning.
echo "Hello, how are you doing today?" | tr -s " " "\n"
Thanks,
Mahaveer
+91 9052000707
On Thu, Sep 24, 2009 at 12:33 AM, eatsubway wrote:
>
> hello, i have a simple question. I have a string which i would like to
> format by replacing spaces
On Wed, Sep 23, 2009 at 12:03:56PM -0700, eatsubway wrote:
>
> hello, i have a simple question. I have a string which i would like to
> format by replacing spaces with newlines and tabs, and also adding a tab to
> the beginning.
The printf builtin will do that easily. If you give it a format