Re: [Hampshire] Pipe issues

Top Page

Reply to this message
Author: Leo
Date:  
To: Hugo Mills
CC: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Pipe issues
Hugo Mills wrote:
>
>    I have a thought... is this program normally run interactively? If
> so, does it present a countdown of remaining time or bytes? If so,
> it's quite likely that it's using CR, reverse tabs, or other control
> characters to overwrite the previous line. If it's doing that, you'll
> probably find that grep isn't handling the output right.

>
>    You could try something like this:

>
> program | tr [[:cntrl:]] \\n | grep -E -v remaining[[:space:]]*$
>
>    Hugo.

>


Yes it does present a countdown and the "... remaining" only appears on
the one line. I will give your suggestion a try tomorrow as the computer
it runs on is down now.

Thank you,
Leo