On Sat, 2006-08-26 at 19:18 +1200, Gordon Stewart wrote: > Hi there, Im not sure if this is a PHP command, or a specific server command.. > > but Im using :- > > echo `cat $temp >>$output 2>&1`;
Without actually testing, and this may not work since it is early for me, but I would try this: echo `cat $temp | grep -v ^$ >>$output 2>&1`; On many Linux systems you can replace the ` (the backticks) like so: echo $(cat $temp | grep -v ^$ >>$output 2>&1); HTH, -- Doug Registered Linux User #285548 (http://counter.li.org) ---------------------------------------- Random Thought: I feel sorry for your brain... all alone in that great big head... Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
