Wc -Sx- Jones wrote:
>
> Dos files lines end with control-M control-J, while unix files end with
> control-J. If you look at a dos ascii file in unix you will see the
> control-M. Control-M is the carriage return and control-J is the line
> feed. In order to display a dos ascii file in unix cor
Andrew Gaffney wrote:
Andrew Gaffney wrote:
I have a non-printable character that I'm trying to match in a regex,
but I can't figure out what it is. If I know it comes after '~~~' in a
string, how can I show its value? I tried:
s/~~~(.?)/sprintf "|%d|", $1/se;
but that just displays '|0|' whic
Dos files lines end with control-M control-J, while unix files end with
control-J. If you look at a dos ascii file in unix you will see the
control-M. Control-M is the carriage return and control-J is the line
feed. In order to display a dos ascii file in unix correctly you must
remove the contr
Andrew Gaffney wrote:
I have a non-printable character that I'm trying to match in a regex,
but I can't figure out what it is. If I know it comes after '~~~' in a
string, how can I show its value? I tried:
s/~~~(.?)/sprintf "|%d|", $1/se;
but that just displays '|0|' which I don't think is righ