On Wed, 2004-03-03 at 19:17, JM wrote:
> Hi,
> 
>       I have a script that contains this line...
> 
>                 echo $i | grep mystring | grep $now | cut -d ' ' -f11
>         This line outputs numbers...
> 
>       But when I tried to place the value to a variable like the line below..
>                   b=`echo $i | grep mystring | grep $now | cut -d ' ' -f11`
>            and tried to echo variable b... its outputs nothing.. can someone 
> tell me why im getting an empty string?

i='0 1 2 3 4 5 6 7'; echo $i | cut -d ' ' -f7
6
b=`i='0 1 2 3 4 5 6 7'; echo $i | cut -d ' ' -f7`; echo $b
6
yes it does
???
i dontno the val of your vars
but could it be the field number -f11 valueing
a nil ?

------------------

- stderr(Cagayan de Oro)





--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to