Victor Mote <[EMAIL PROTECTED]> wrote: > [...] > I have never been able to get grep to detect them. The only way I know (and > it falls into the category of "beat it to death") is to convert each file > using tr, then compare it to the old one. Here is a script that I just ran > on my box that works: > [...]
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 Tim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]