^M
Brad De Vries
devriesbj
Mon May 17 11:46:59 PDT 2004
--- Ted Ozolins <ted at telus.net> wrote:
> James McDonald wrote:
>
> > Ted Ozolins wrote:
> >
> >> During my days working with cp/m I use to use in
> scripts ^M to obtain
> >> the action of <Enter>. How or what can be used in
> bash (as in
> >> rc.local) to get the same action?
> >> TIA
> >
> >
> > Isn't it just a matter of doing a an echo -e \xxx
> where xxx is the
> > octal value of the ascii code? Although I couldn't
> figure out the code
> > for ^M by looking at the "man ascii" page... if
> someone knows I'm
> > curious now aswell.
>
> The only value I can get are the keycodes (28 and
> 96) 28 being in the
> qwerty section and 98 by the numeric keypad. I use
> to have an old cpm-80
> book that listed all those goodies but no longer am
> sure where it is<G>
>
> Ted Ozolins (VE7TVO)
> Westbank, B.C.
Using the good ol' "od" command, I found that ^M
(Carriage Return) is:
decimal: 13
octal: 015
hex: 0xD
HTH.
Brad.
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
More information about the Linux-users
mailing list