Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Exit Status<br />
Related Information<br />
Examples<br />
v 0 on success<br />
v >0 if an error occurs.<br />
v dirname - Return directory portion of path name<br />
1. Set the shell variable FOO to “trail”.<br />
FOO=$(basename /usr/bin/trail)<br />
2. Return the last part of the path “/usr/bin/this_test” with the “test” suffix removed.<br />
basename /usr/bin/this_test test<br />
[ Legal | AS/400 Glossary ]<br />
cat - Concatenate and print files<br />
Synopsis<br />
Description<br />
Options<br />
44 <strong>Qshell</strong> <strong>Interpreter</strong> (<strong>qsh</strong>)<br />
cat [-benstuv] [-] [file ...]<br />
The cat utility reads the specified files sequentially, writing them to standard output.<br />
The file operands are processed in command line order. A single dash represents<br />
standard input.<br />
Note that because of the shell language mechanism used to perform output<br />
redirection, the command cat file1 file2 > file2 will cause the original data in<br />
file2 to be destroyed. Also, the process will go into an infinite loop.<br />
-b Implies the -n option but doesn’t number blank lines.<br />
-e Implies the -v option, and displays a dollar sign ($) at the end of each line<br />
as well.<br />
-n Number the output lines, starting at 1.<br />
-s Squeeze multiple adjacent empty lines, causing the output to be single<br />
spaced.<br />
-t Implies the -v option, and displays tab characters as well.<br />
-u Guarantee that the output is unbuffered.<br />
-v Displays non-printing characters so they are visible. Control characters print<br />
as “|X” for control-X; the delete character prints as “|?” Non-display<br />
characters are printed as “M-” (for meta) followed by the character for the<br />
low 7 bits.