From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: f8c9b,13df07ff5d645600,start X-Google-Attributes: gidf8c9b,public X-Google-Thread: f72b0,13df07ff5d645600,start X-Google-Attributes: gidf72b0,public X-Google-Thread: fc89c,13df07ff5d645600,start X-Google-Attributes: gidfc89c,public X-Google-Thread: 1020c6,13df07ff5d645600,start X-Google-Attributes: gid1020c6,public X-Google-Thread: f9b51,13df07ff5d645600,start X-Google-Attributes: gidf9b51,public X-Google-Thread: 1012a6,13df07ff5d645600,start X-Google-Attributes: gid1012a6,public X-Google-Thread: ff9be,13df07ff5d645600,start X-Google-Attributes: gidff9be,public X-Google-Thread: fee84,13df07ff5d645600,start X-Google-Attributes: gidfee84,public From: Nguyen-Dai Quy Subject: shell function like ASCII & CHAR of Fortran77 ? Date: 1998/12/29 Message-ID: <3688D110.54ED9FFB@ulg.ac.be>#1/1 X-Deja-AN: 426754501 Content-Transfer-Encoding: 8bit X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: =?iso-8859-1?Q?LTAS=2DM=E9canique?= de la Rupture, ULg Mime-Version: 1.0 Newsgroups: comp.unix.shell,comp.unix.programmer,comp.unix.questions,comp.unix.misc,comp.unix.osf.osf1,comp.unix.admin,comp.os.linux.setup,comp.os.linux.questions,comp.os.linux.help,comp.os.linux.misc Hi, I would like to look for a shell function (ksh). This function takes a single character as argument, and returns an integer value. Like ASCII function in Fortran77. For example: ASCII("A")=65; ASCII("9")=57;... And the reverse function (like CHAR of Fortran77) takes an integer argument and returns a single character. For example : CHAR(65)=A Thanks very much. ______________________________________________ Nguyen-Dai Quy LTAS - M�canique de la Rupture, ULG. Rue Ernest Solvay 21, B�t C3, B 4000, Li�ge, Belgique T�l:+32-4-366.92.41 Fax:+32-4-366.93.11 http://isis.ltas.ulg.ac.be/dang/who/quy _______________________________________________________