On Wed, Mar 03, 2004 at 07:17:09PM +0800, JM wrote:
>                 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..

I can't reproduce your problem here...

$ now=a; i="mystring a b c d e f g h i 11"; echo $i | grep mystring |
grep $now | cut -d ' ' -f11
11
$ now=a; i="mystring a b c d e f g h i 11"; b=`echo $i | grep mystring |
grep $now | cut -d ' ' -f11`; echo $b
11
$

-- 
$_=q:; # SHERWIN #
70;72;69;6e;74;20;
27;4a;75;73;74;20;
61;6e;6f;74;68;65;
72;20;50;65;72;6c;
20;6e;6f;76;69;63;
65;27;:;;s=~?(..);
?=pack q$C$,hex$1;
;;;=egg;;;;eval;;;
--
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