Kamaraju writes:
> I am wondering if there is a way to rewrite the names variable in
> stanza2 such that the output from stanza 1 and stanza 2 are the same.
I can think of several, but I doubt any will do what you want. What is
your actual problem? What are you trying to achieve?
--
John Hasler
On Thu, Jul 7, 2011 at 10:31 AM, Teemu Likonen wrote:
> * 2011-07-07T07:13:24+02:00 * Javier Barroso wrote:
>
>> On Thu, Jul 7, 2011 at 5:22 AM, Kamaraju S Kusumanchi
>> wrote:
>>> Consider the following shell script
>
>>> #! /bin/sh
>
>> You can use array variables if you want:
>>
>> names=("kam
* 2011-07-07T07:13:24+02:00 * Javier Barroso wrote:
> On Thu, Jul 7, 2011 at 5:22 AM, Kamaraju S Kusumanchi
> wrote:
>> Consider the following shell script
>> #! /bin/sh
> You can use array variables if you want:
>
> names=("kama" "raju" "k a m a")
> for i in "${names[@]}"
Yes, but not with /b
On Thu, Jul 7, 2011 at 5:22 AM, Kamaraju S Kusumanchi
wrote:
> Consider the following shell script
>
> $cat manual_listing.sh
> #! /bin/sh
>
> # stanza 1
> for i in "kama" "raju" "k a m a" "r a j u"
> do
> echo $i
> done
>
> # stanza 2
> names='kama raju'
> for i in $names
> do
> ech
On 07/06/11 at 11:22pm, Kamaraju S Kusumanchi wrote:
> Consider the following shell script
>
> $cat manual_listing.sh
>
>
Consider the following shell script
$cat manual_listing.sh
#! /bin/sh
# stanza 1
for i in "kama" "raju" "k a m
6 matches
Mail list logo