16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

skulker<br />

Exit Values<br />

Messages<br />

0 Successful completion<br />

1 Either skulker did not find any files that are candidates for deletion, or an<br />

error occurred.<br />

2 There was a usage error.<br />

Possible messages include:<br />

directory is not a directory<br />

The find command returned a non-zero exit status: return code<br />

Error occurred during remove [of file]. Return code=return code.<br />

The rm command failed with return code while attempting to delete file.<br />

file is in use, not removed.<br />

Some other process was using this file. file cannot be removed.<br />

sort — Start the sort-merge utility<br />

Format<br />

Description<br />

Options<br />

sort [–cmu] [–o outfile] [–t char] [–y[n]] [–zn] [–bdfiMnr] [–k startpos[,endpos]]<br />

... [file ...]<br />

sort [–cmu] [–o outfile] [–tchar] [–yn] [–zn] [–bdfiMnr] [+startposition<br />

[–endposition]] ... [file ...]<br />

sort implements a full sort-and-merge utility. By default, it sorts according to all the<br />

information in the record, in the order given in the record.<br />

sort operates on input files containing records that are separated by the newline<br />

character. When you do not specify either the –c or –m option, sort sorts the<br />

concatenation of all input files and produces the output on standard output. The<br />

following options select particular operations:<br />

–c Checks input files to ensure that they are correctly ordered according to the<br />

key position and sort ordering options specified, but does not modify or<br />

output the files. This option affects only the exit code.<br />

–m Merges files into one sorted output stream. This option assumes that each<br />

input file is correctly ordered according to the other options specified on the<br />

command line; you can check this with the –c option.<br />

–u Ensures that output records are unique. If two or more input records have<br />

equal sort keys, sort writes only the first record to the output. When you<br />

use –u with –c, sort prints a diagnostic message if the input records have<br />

any duplicates.<br />

When you do not specify either the –c or the –m option, sort sorts the<br />

concatenation of all input files and produces the output on standard output.<br />

–o outfile<br />

Writes output to the file outfile. By default, sort writes output to the standard<br />

588 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!