; Means Multiple Commands

Qedit 5.7 for HP-UX

Home Previous Next


;
Means Multiple Commands

Semicolon ";" combines two or more Qedit commands on a single line:

/list 5/10;add 5.5

Entering several semicolons (";;;") displays forward several lines.

When combining Qedit commands, be sure to use the same quote character in all of them.

Incorrect:

/c7/7"DISPLAY";c\.\\

Correct:

/c7/7"DISPLAY";c".""

If you want to include HP-UX commands in the list and their syntax requires semicolons, Qedit might not be able to parse the list correctly. To work around this problem, you can put parentheses around the whole command. For example,

/list 5;!find . -name testfile -exec cat {} \; fails
/list 5;(!find . -name testfile -exec cat {} \;) works fine

If some commands require semicolons and parentheses, you have to put the problematic command in a shell script and use it in the command list instead.


Home Previous Next