Tim Landscheidt wrote: > Why not just use file(1)? > > | [tim@butler ~]$ file /var/tmp/test-{dos,unix}.txt > | /var/tmp/test-dos.txt: ASCII text, with CRLF line terminators > | /var/tmp/test-unix.txt: ASCII text
I thought of that too, but it doesn't work on my Linux box (which reports both as "ASCII text"), so it is at least somewhat implementation-dependent. It seems like our old SCO system could tell the difference, and my Linux is not the latest/greatest so perhaps our CVS server can handle it better. I don't trust "file" for anything critical, but, if it makes the distinction that you noted above, it is probably adequate for the task at hand. Victor Mote --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]