Difference between revisions of "$chr"

From Scriptwiki
Jump to: navigation, search
(ascii table and more examples needed..)
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Returns the character with ascii number N.
 
Returns the character with ascii number N.
 
  $chr(N)
 
  $chr(N)
//echo -a $chr(65) returns ''A''.
 
  
== See Also ==
+
To get a list of all ascii chars and ascii numbers, take a look at http://www.lookuptables.com/.
[[$asc]] returns the ascii number of a character.
 
  
 +
== Example ==
 +
[[echo]] -a $chr(65)
 +
This example would return the character with the ASCII-code 65. That is an 'A'.
  
 
+
== See Also ==
{{stub}}
+
* [[$asc]] returns the ascii number of a character.
  
 
[[Category:Text_and_Number_Identifiers]]
 
[[Category:Text_and_Number_Identifiers]]

Latest revision as of 11:03, 2 July 2007

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.