![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Print to ps2pdf print queue | Sean_69 | SUN Solaris | 2 | 10-22-2007 11:00 AM |
| Print to a ps2pdf print queue. | Sean_69 | UNIX for Dummies Questions & Answers | 1 | 10-22-2007 10:58 AM |
| Print Problem in UNIX. Need to know the option to specify the print paper size | ukarthik | HP-UX | 1 | 06-07-2007 09:35 AM |
| How do I get awk to print a " in it's print part? | LordJezo | Shell Programming and Scripting | 2 | 06-27-2006 09:16 PM |
| ascii | melkor | UNIX for Dummies Questions & Answers | 3 | 12-12-2003 10:33 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Not sure where 97 came from for "A". maybe you mean lower case "a".
See: man ascii . A = 101 in octal A = 41 in hexadecimal A = 65 in decimal a = 141 in octal a = 61 in hexadecimal a = 97 in decimal If you actually mean lower case a, you can use "bc" to change number bases from decimal to octal then use shell echo to display the character. #!/bin/ksh CHAR=97 OCT=`echo "obase=8;ibase=10;${CHAR}"|bc` echo "\0${OCT}" a |