Re: Regular expression to exclude lines?
JRS: In article <3FC544FD.20501 03@PointedEars. de>, seen in
news:comp.lang. javascript, Thomas 'PointedEars' Lahn
<PointedEars@we b.de> posted at Thu, 27 Nov 2003 01:27:41 :-[color=blue]
>Dr John Stockton wrote:
>[color=green]
>> Thomas 'PointedEars' Lahn wrote:[/color][/color]
[color=blue][color=green][color=darkred]
>>> grep -v 'mystring' old.log >new.log 2>&1
>>>
>>>The single quotes are only required if special shell expressions are
>>>used but not escaped. 2>&1 captures (error) messages in new.log, too.
>>>If you do not want that, leave it out.[/color]
>>
>> I'm not aware of 2>&1 being valid in either DOS or Win98,[/color]
>
>It is only available in Cmd.exe of Windows NT-based systems and
>Unices, generally saying in POSIX-compatible shells, of course.[/color]
There is no reason to assume that the OP is aware of that; or even of
that part of that that is applicable to the system in question. a
plausible but inapplicable or incorrect "solution" is worse than
useless".
[color=blue][color=green]
>> IMHO, MiniTrue is more useful than GREP and SED; see my reply to your
>> earlier post.[/color]
>
>MiniTrue is not part of a basic installation of Unices,
>though. (Instead, mtr refers to Matt's Traceroute.)[/color]
Indeed; nor of DOS; which is sufficiently clearly indicated by my
signature to that article.
--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME ©
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demo n.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
JRS: In article <3FC544FD.20501 03@PointedEars. de>, seen in
news:comp.lang. javascript, Thomas 'PointedEars' Lahn
<PointedEars@we b.de> posted at Thu, 27 Nov 2003 01:27:41 :-[color=blue]
>Dr John Stockton wrote:
>[color=green]
>> Thomas 'PointedEars' Lahn wrote:[/color][/color]
[color=blue][color=green][color=darkred]
>>> grep -v 'mystring' old.log >new.log 2>&1
>>>
>>>The single quotes are only required if special shell expressions are
>>>used but not escaped. 2>&1 captures (error) messages in new.log, too.
>>>If you do not want that, leave it out.[/color]
>>
>> I'm not aware of 2>&1 being valid in either DOS or Win98,[/color]
>
>It is only available in Cmd.exe of Windows NT-based systems and
>Unices, generally saying in POSIX-compatible shells, of course.[/color]
There is no reason to assume that the OP is aware of that; or even of
that part of that that is applicable to the system in question. a
plausible but inapplicable or incorrect "solution" is worse than
useless".
[color=blue][color=green]
>> IMHO, MiniTrue is more useful than GREP and SED; see my reply to your
>> earlier post.[/color]
>
>MiniTrue is not part of a basic installation of Unices,
>though. (Instead, mtr refers to Matt's Traceroute.)[/color]
Indeed; nor of DOS; which is sufficiently clearly indicated by my
signature to that article.
--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME ©
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demo n.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Comment