HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Showing results for 
Search instead for 
Did you mean: 

List of reserved (or special) characters

Go to solution

List of reserved (or special) characters

Hi people

Anyone here kwon where i find a list (or command) who display a list of HP-UX 10.20 special characters? (like *, $, #, etc)

Thx to all
Rodney Hills
Honored Contributor

Re: List of reserved (or special) characters

stty -a

will display all the special characters for terminal usage.

-- Rod Hills
There be dragons...
Bill Hassell
Honored Contributor

Re: List of reserved (or special) characters

What you're asking is most likely the characters that have special processing by the shell (HP-UX does not have any special characters). For instance, you can make a file name called: @#$%^&*(),.;':"|\-_
but you'll have to "escape" the special meaning of those characters so the shell sees it as a simple string. The man page for the shell will be the most useful is understanding the unique characters. Look at shell built-in characters such as () {} [] which define special handling.

Also look at filename expansion such as ? and *. Filename expansion is an automated feature that changes the * character into whatever file/directory names are in the current directory. To see how this works, type thexe commands:

echo *
echo \*

In the first case, the * is replaced (by the shell) with all the names that match * (basically, any filename except those that start with .) The second form uses the \ character to disable the special meaning of *.

A good Korn shell book will give you the details about shell commands and special characters. If you are looking for a list of characters to avoid in filenames or other command-line strings, you can safely assume that the first 32 characters in ASCII (hex 00-2F) and the last 5 (7B-7F) mean something or are invisible and should not be used without knowing their meaning to the shell.

Bill Hassell, sysadmin
Chris Vail
Honored Contributor

Re: List of reserved (or special) characters

Attached is a script that prints out all values from 0 to 255 (decimal). Technically, all values less than 47 (decimal) are "special", but the term generally refers to non-printing values 0-31. Just because they don't print doesn't mean they don't signify anything.
Decimal value 10 signifies a line feed, while 13 signifies the carriage return. Decimal value 8 is the of 8 spaces, and decimal value 3 is "interrupt" or .
The "echo" command in Unix allows these to be used, but you must use the octal value. Values of 26 and less can be generated from the keyboard by pressing the key in combination with another alphabetic key. Decimal value 1 can be generated with , 2 with , 3 with and so on. These are commonly called "control codes". The key has a value of decimal 27 (octal 33).

Features of printers can be enabled/disabled by sending a sequence of characters beginning with the sequence. If your printer is connected to ttyA, and your owners manual tells you that it will switch to bar code mode when it is sent ESCAPE [A, you can print bar codes with t...


Re: List of reserved (or special) characters