$chr: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Doomie (talk | contribs)
wouldnt know what to say
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
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 ==
  [[echo]] -a $chr(65)  
  [[echo]] -a $chr(65)  
This example would return the character with the ASCII-code 65. That is an 'A'.
This example would return the character with the ASCII-code 65. That is an 'A'.


== See Also ==
== See Also ==
[[$asc]] returns the ascii number of a character.
* [[$asc]] returns the ascii number of a character.
 
 


[[Category:Text_and_Number_Identifiers]]
[[Category:Text_and_Number_Identifiers]]

Latest revision as of 09: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.