Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
Qshell Interpreter (qsh) - FTP Directory Listing - IBM
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Operands<br />
Exit Status<br />
Related Information<br />
Examples<br />
-s Ignore the first chars characters in each input line when doing comparisons.<br />
If specified in conjunction with the -f option, the first chars characters after<br />
the first fields fields will be ignored. Character numbers are one based, i.e.<br />
the first character is character one.<br />
-u Suppress the writing of lines that are repeated in the input.<br />
If additional arguments are specified on the command line, the first such argument<br />
is used as the name of an input file, the second is used as the name of an output<br />
file.<br />
v 0 on success<br />
v >0 if an error occurs<br />
v grep - Search a file for a pattern<br />
v split - Split files into pieces<br />
In the following examples, the contents of example file are:<br />
There are 5 apples<br />
There are 9 oranges<br />
There are 9 oranges<br />
There are 2 pears<br />
1. Display the unique lines in the file “fruit”.<br />
uniq fruit<br />
There are 5 apples<br />
There are 9 oranges<br />
There are 2 pears<br />
2. Display the lines that repeat in the file “fruit”.<br />
uniq -d fruit<br />
There are 9 oranges<br />
3. Display a list of how many times a line is repeated in the file “fruit”.<br />
uniq -c fruit<br />
1 There are 5 apples<br />
2 There are 9 oranges<br />
1 There are 2 pears<br />
[ Legal | AS/400 Glossary ]<br />
Utilities for working with files and directories<br />
42 <strong>Qshell</strong> <strong>Interpreter</strong> (<strong>qsh</strong>)<br />
The following are <strong>Qshell</strong> utilities for working with files and directories:<br />
v basename - Return non-directory portion of pathname