bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string format


From: mahaveer darade
Subject: Re: string format
Date: Thu, 24 Sep 2009 10:53:35 +0530

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 <koskinmj@gmail.com> 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 variable...
> MyVar="Hello, how are you doing today?"
> I would like to print this....
>
>   Hello,
>   how
>   are
>   you
>   doing
>   today?
> --
> View this message in context:
> http://www.nabble.com/string-format-tp25531252p25531252.html
> Sent from the Gnu - Bash mailing list archive at Nabble.com.
>
>
>
>


-- 
Thanks,
Mahaveer


reply via email to

[Prev in Thread] Current Thread [Next in Thread]