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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Related Information<br />

fc, sh, tcsh<br />

v With -T, timestamps are printed also in comment form. (This can be used to<br />

produce files suitable for loading with history -L or source -h.)<br />

v With -r, the order of printing is most recent first rather than oldest first.<br />

v With -S, history saves the history list to filename. If the first word of the savehist<br />

shell variable is set to a number, at most that many lines are saved. If the<br />

second word of savehist is set to merge, the history list is merged with the<br />

existing history file instead of replacing it (if there is one) and sorted by time<br />

stamp. Merging is intended for an environment like the X Window <strong>System</strong> with<br />

several shells in simultaneous use. Currently it only succeeds when the shells<br />

quit one after another.<br />

v With -L, the shell appends filename, which is presumably a history list saved by<br />

the -S option or the savehist mechanism, to the history list. -M is like -L, but the<br />

contents of filename are merged into the history list and sorted by timestamp. In<br />

either case, histfile is used if filename is not given and ~/.history is used if<br />

histfile is unset. history -L is exactly like source -h except that it does not<br />

require a filename.<br />

v With -c, clears the history list.<br />

tcsh login shells do the equivalent of history -L on startup and, if savehist is set,<br />

history -S before exiting. Because only ~/.tcshrc is normally sourced before<br />

~/.history, histfile should be set in ~/.tcshrc rather than ~/.login. If histlit is set,<br />

the first form (history [-hTr] [n]) and second form (history -S|-L|-M [filename]) print<br />

and save the literal (unexpanded) form of the history list.<br />

iconv — Convert characters from one codeset to another<br />

Format<br />

Description<br />

iconv [–sc] –f oldset –t newset [file ...]<br />

iconv –l[–v]<br />

File Tag Specific Options:<br />

iconv [–F] [–M] [–T]<br />

iconv converts characters in file (or from stdin if no file is specified) from one code<br />

page set to another. The converted text is written to stdout. See z/<strong>OS</strong> XL C/C++<br />

Programming Guide for more information about the code sets supported for this<br />

command.<br />

If the input contains a character that is not valid in the source code set, iconv<br />

replaces it with the byte 0xff and continues, unless the –c option is specified.<br />

history<br />

If the input contains a character that is not valid in the destination code set,<br />

behavior depends on the system’s iconv() function. See z/<strong>OS</strong> XL C/C++ Run-Time<br />

Library Reference for more information about the character used for converting<br />

incorrect characters.<br />

Also, z/<strong>OS</strong> XL C/C++ Programming Guide has a list of code pages supported by<br />

the z/<strong>OS</strong> shell.<br />

Chapter 2. Shell command descriptions 309

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

Saved successfully!

Ooh no, something went wrong!