detect unix or dos line endings



On 05/23/2011 12:17 PM, Edwin Woollett wrote:
> How can I use Maxima to determine whether a text
> file has unix (LF = ascii 10) or dos line endings (CR = ascii 13, LF)?
>
> Ted Woollett
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
Hi again Ted:

Look in the help file for "ascii (int)" and "cequal (char_1, char_2)" 
and its friends as a possible solution.

Paul