i was able to fix it by using awk... but im wondering why is "cut" giving me a null value..
On Wednesday 03 March 2004 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? > > > TIA > > -- > 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 -- 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
