Difference between revisions of "$chr"

From Scriptwiki
Jump to: navigation, search
(wouldnt know what to say)
(added link to ascii table)
Line 2: Line 2:
 
  $chr(N)
 
  $chr(N)
  
 +
To get a list of all ascii chars and ascii numbers, take a look at http://www.lookuptables.com/.
  
 
== Example ==
 
== Example ==

Revision as of 16:55, 2 April 2006

Returns the character with ascii number N.

$chr(N)

To get a list of all ascii chars and ascii numbers, take a look at http://www.lookuptables.com/.

Example

echo -a $chr(65) 

This example would return the character with the ASCII-code 65. That is an 'A'.


See Also

$asc returns the ascii number of a character.