[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep RFE: End-of-Line choices
From: |
Claudio Fontana |
Subject: |
Re: grep RFE: End-of-Line choices |
Date: |
Fri, 27 Feb 2004 15:55:27 +0100 (CET) |
> If I had
> to make a choice between a grep that only did LF and
> a grep that always
> chooses among LF, CRLF, or CR, I'd take the latter.
> But I'd prefer one
> that had switches to prevent screw-ups for a case I
> can't even imagine.
I agree; additionally I would suggest not to make grep
automatically distinguish between text and binary
files looking at the first few bytes and instead
default to text and use a switch to force binary
interpretation.
Once the user has chosen to interpret the file as
text, I think that grep should consider each
occurrence of the sequences LF, CRLF or CR as a single
end of line and do this in a clean way.
What do you think of this?
Stepan, would you accept some code restructuring
leading to these goals?
Claudio
=====
---------------------------------------------------------------
Claudio Fontana - contacts
web: cmdftp.sourceforge.net/cfontana/
general purpose: sick_soul at yahoo d0t it
free sw development: sick_soul at users dOt sourceforge d0t net
university: claudio.fontana at studenti d0t unitn d0t it
itc/irst: cfontana at itc d0t it
______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il
filtro Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/
- grep RFE: End-of-Line choices, Mabry Tyson, 2004/02/25
- Re: grep RFE: End-of-Line choices, Stepan Kasal, 2004/02/26
- Re: grep RFE: End-of-Line choices, Claudio Fontana, 2004/02/26
- Re: grep RFE: End-of-Line choices, Stepan Kasal, 2004/02/27
- Re: grep RFE: End-of-Line choices, Mabry Tyson, 2004/02/27
- Re: grep RFE: End-of-Line choices, Eli Zaretskii, 2004/02/27
- Re: grep RFE: End-of-Line choices, Stepan Kasal, 2004/02/27
- Re: grep RFE: End-of-Line choices, Eli Zaretskii, 2004/02/27
- Re: grep RFE: End-of-Line choices, Stepan Kasal, 2004/02/27
- Re: grep RFE: End-of-Line choices,
Claudio Fontana <=