Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM Qshell Interpreter (qsh) - FTP Directory Listing - IBM
iv Qshell Interpreter (qsh) if conditional construct . . . . . . . . . . . . . . . . . . . . . 25 case conditional construct . . . . . . . . . . . . . . . . . . . 26 while loop . . . . . . . . . . . . . . . . . . . . . . . . . 26 until loop . . . . . . . . . . . . . . . . . . . . . . . . . . 26 for loop . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Functions . . . . . . . . . . . . . . . . . . . . . . . . . 27 Chapter 4. Utilities . . . . . . . . . . . . . . . . . . . . . . . 29 List of all utilities . . . . . . . . . . . . . . . . . . . . . . . . 29 Utilities for defining aliases . . . . . . . . . . . . . . . . . . . . 30 alias - Define or display aliases . . . . . . . . . . . . . . . . . . 30 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Description . . . . . . . . . . . . . . . . . . . . . . . . . 30 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 30 Exit status . . . . . . . . . . . . . . . . . . . . . . . . . 30 Related information . . . . . . . . . . . . . . . . . . . . . . 30 Examples . . . . . . . . . . . . . . . . . . . . . . . . . 30 unalias - Remove alias definitions . . . . . . . . . . . . . . . . . 31 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Description . . . . . . . . . . . . . . . . . . . . . . . . . 31 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 31 Exit status . . . . . . . . . . . . . . . . . . . . . . . . . 31 Related information . . . . . . . . . . . . . . . . . . . . . . 31 Examples . . . . . . . . . . . . . . . . . . . . . . . . . 31 Utilities for running commands . . . . . . . . . . . . . . . . . . . 31 command - Run a simple command . . . . . . . . . . . . . . . . . 32 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Description . . . . . . . . . . . . . . . . . . . . . . . . . 32 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 32 Exit status . . . . . . . . . . . . . . . . . . . . . . . . . 32 Related information . . . . . . . . . . . . . . . . . . . . . . 32 Examples . . . . . . . . . . . . . . . . . . . . . . . . . 32 dot (.) - Run commands in current environment . . . . . . . . . . . . 33 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Description . . . . . . . . . . . . . . . . . . . . . . . . . 33 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 33 Exit status . . . . . . . . . . . . . . . . . . . . . . . . . 33 Related information . . . . . . . . . . . . . . . . . . . . . . 33 env - Set environment for command invocation. . . . . . . . . . . . . 33 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Description . . . . . . . . . . . . . . . . . . . . . . . . . 33 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 34 Exit Status . . . . . . . . . . . . . . . . . . . . . . . . . 34 eval - Construct command by concatenating arguments . . . . . . . . . 34 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Description . . . . . . . . . . . . . . . . . . . . . . . . . 34 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 34 Exit status . . . . . . . . . . . . . . . . . . . . . . . . . 34 Related information . . . . . . . . . . . . . . . . . . . . . . 34 exec - Run commands and open, close, or copy descriptors . . . . . . . . 35
Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Description . . . . . . . . . . . . . . . . . . . . . . . . . 35 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 35 Exit status . . . . . . . . . . . . . . . . . . . . . . . . . 35 Related information . . . . . . . . . . . . . . . . . . . . . . 35 Examples . . . . . . . . . . . . . . . . . . . . . . . . . 35 exit - Exit from the shell . . . . . . . . . . . . . . . . . . . . . 35 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Description . . . . . . . . . . . . . . . . . . . . . . . . . 35 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 36 Exit status . . . . . . . . . . . . . . . . . . . . . . . . . 36 Related information . . . . . . . . . . . . . . . . . . . . . . 36 return - Return from a function . . . . . . . . . . . . . . . . . . . 36 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Description . . . . . . . . . . . . . . . . . . . . . . . . . 36 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 36 Exit status . . . . . . . . . . . . . . . . . . . . . . . . . 36 Related information . . . . . . . . . . . . . . . . . . . . . . 36 system - Run CL command . . . . . . . . . . . . . . . . . . . . 37 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Description . . . . . . . . . . . . . . . . . . . . . . . . . 37 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 37 Exit Status . . . . . . . . . . . . . . . . . . . . . . . . . 37 Examples . . . . . . . . . . . . . . . . . . . . . . . . . 37 whence - Find type of command . . . . . . . . . . . . . . . . . . 37 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Description . . . . . . . . . . . . . . . . . . . . . . . . . 37 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 38 Exit Status . . . . . . . . . . . . . . . . . . . . . . . . . 38 Related information . . . . . . . . . . . . . . . . . . . . . . 38 Examples . . . . . . . . . . . . . . . . . . . . . . . . . 38 Utilities for manipulating data . . . . . . . . . . . . . . . . . . . 38 grep - Search a file for a pattern . . . . . . . . . . . . . . . . . . 38 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Description . . . . . . . . . . . . . . . . . . . . . . . . . 38 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Exit Status . . . . . . . . . . . . . . . . . . . . . . . . . 39 Extended Regular Expressions (ERE) . . . . . . . . . . . . . . . 39 Related Information . . . . . . . . . . . . . . . . . . . . . . 40 Examples . . . . . . . . . . . . . . . . . . . . . . . . . 40 split - Split files into pieces . . . . . . . . . . . . . . . . . . . . 40 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Description . . . . . . . . . . . . . . . . . . . . . . . . . 40 Options . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Operands . . . . . . . . . . . . . . . . . . . . . . . . . 41 Exit Status . . . . . . . . . . . . . . . . . . . . . . . . . 41 Related Information . . . . . . . . . . . . . . . . . . . . . . 41 Examples . . . . . . . . . . . . . . . . . . . . . . . . . 41 uniq - Report or filter out repeated lines in a file . . . . . . . . . . . . 41 Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Description . . . . . . . . . . . . . . . . . . . . . . . . . 41 Contents v
- Page 1: Qshell Interpreter (qsh)
- Page 4 and 5: © Copyright International Business
- Page 8 and 9: vi Qshell Interpreter (qsh) Options
- Page 10 and 11: viii Qshell Interpreter (qsh) Synop
- Page 12 and 13: x Qshell Interpreter (qsh) Options
- Page 14 and 15: xii Qshell Interpreter (qsh) Synops
- Page 16 and 17: xiv Qshell Interpreter (qsh) Error
- Page 18 and 19: 2 Qshell Interpreter (qsh) v Added
- Page 20 and 21: 4 Qshell Interpreter (qsh)
- Page 22 and 23: Function key Description F7 (Up) Ro
- Page 24 and 25: CCSIDs supported by qsh 00273 00273
- Page 26 and 27: 10 Qshell Interpreter (qsh) - The f
- Page 28 and 29: Parameters Positional parameters Sp
- Page 30 and 31: Variables used by qsh 14 Qshell Int
- Page 32 and 33: Word expansions Tilde expansion Par
- Page 34 and 35: $(command) or by using backquotes:
- Page 36 and 37: 20 Qshell Interpreter (qsh) Arithme
- Page 38 and 39: Here-documents Using commands [ n ]
- Page 40 and 41: Lists Asynchronous lists Sequential
- Page 42 and 43: then list4 ] ... [ else list5 ] cas
- Page 44 and 45: 28 Qshell Interpreter (qsh) [ Legal
- Page 46 and 47: Utilities for defining aliases The
- Page 48 and 49: command - Run a simple command Syno
- Page 50 and 51: Options Operands Exit Status - Invo
- Page 52 and 53: Options Operands Exit status None.
- Page 54 and 55: Operands Exit Status Related inform
Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />
Description . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />
Options . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />
Operands . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />
Exit status . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />
Related information . . . . . . . . . . . . . . . . . . . . . . 35<br />
Examples . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />
exit - Exit from the shell . . . . . . . . . . . . . . . . . . . . . 35<br />
Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />
Description . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />
Options . . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />
Operands . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />
Exit status . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />
Related information . . . . . . . . . . . . . . . . . . . . . . 36<br />
return - Return from a function . . . . . . . . . . . . . . . . . . . 36<br />
Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />
Description . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />
Options . . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />
Operands . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />
Exit status . . . . . . . . . . . . . . . . . . . . . . . . . 36<br />
Related information . . . . . . . . . . . . . . . . . . . . . . 36<br />
system - Run CL command . . . . . . . . . . . . . . . . . . . . 37<br />
Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />
Description . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />
Options . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />
Operands . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />
Exit Status . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />
Examples . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />
whence - Find type of command . . . . . . . . . . . . . . . . . . 37<br />
Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />
Description . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />
Options . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />
Operands . . . . . . . . . . . . . . . . . . . . . . . . . 38<br />
Exit Status . . . . . . . . . . . . . . . . . . . . . . . . . 38<br />
Related information . . . . . . . . . . . . . . . . . . . . . . 38<br />
Examples . . . . . . . . . . . . . . . . . . . . . . . . . 38<br />
Utilities for manipulating data . . . . . . . . . . . . . . . . . . . 38<br />
grep - Search a file for a pattern . . . . . . . . . . . . . . . . . . 38<br />
Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 38<br />
Description . . . . . . . . . . . . . . . . . . . . . . . . . 38<br />
Options . . . . . . . . . . . . . . . . . . . . . . . . . . 39<br />
Exit Status . . . . . . . . . . . . . . . . . . . . . . . . . 39<br />
Extended Regular Expressions (ERE) . . . . . . . . . . . . . . . 39<br />
Related Information . . . . . . . . . . . . . . . . . . . . . . 40<br />
Examples . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />
split - Split files into pieces . . . . . . . . . . . . . . . . . . . . 40<br />
Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />
Description . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />
Options . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />
Operands . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />
Exit Status . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />
Related Information . . . . . . . . . . . . . . . . . . . . . . 41<br />
Examples . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />
uniq - Report or filter out repeated lines in a file . . . . . . . . . . . . 41<br />
Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />
Description . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />
Contents v