On Fri, Feb 25, 2000 at 01:13:26PM +1100, Rogers, John wrote:
>       Greg,
>       the awk command gives a broken pipe error, 
>       eg. from /var/spool/lpd/lp1/log
>       2000-02-25-11:33:47 penguin (Worker - Print) lp1: write error after
> 32768
>       bytes - Broken pipe 2000-02-25-11:40:18 penguin (Worker - Print)
> lp1: write
>       error after 32768 bytes - Broken pipe
> 
 
>       the first time i ran it complained about couldnt write /tmp/sedawk,
> so i made an empty file and gave rw perms to everyone. but i still get the
> above error.
> 
 drats. I should have read my message more carefully. I'm sorry. I was
 using the file /tmp/sedawk to test the commands, and had meant to remove
 it from the script. try removing it. Apologies. I should have been more 
 careful.

 The correct line should be:
awk 'BEGIN{i=0;}{if ($1 ~ /^BEGMF/) i=1; if ($1 ~ /^ENDMF/) i=0; if (i==0) print}' | 
sed 's/^ENDMF;//g' > /tmp/temp.plt

sorry.

greg
-- 
this is not here

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to