The following commands are available from the OMVS shell:
- help on command use. For example, man chmod will show the manual
information for the chmod command. man extracts this information from
the BookManager books for Unix System Services.
- find text strings in files. For example, grep -i "string" * will scan all
files in the current directory for the specified string. The -i means that the search is case-insensitive.
- finds files with specified attributes.
- find differences between files or directories. diff -s dir1/ dir2/ will
compare files in two directories for differences. It identifies files which
are only found in one of the two directories.
- change file permission bits. You can also invoke this command from ftp
using quote site chmod ... for a single file.
- change file owner. This changes the owning uid and/or gid.
- move or rename one or more files/ directories.
- run a TSO command. Behaviour may vary depending on how you entered the
- converts from one character set to another.
- displays the symbol table from an executable file.
- "Octal Dump". Also does hexadecimal dumps.
- sends a message to all logged in users.
- identifies the location of an executable file.
- display information about logged in users.
- display information about active processes.
- show printable text from a file (even an executable).
- direct output to spool. See Spooling output from OMVS processes
for more information.
I recently made use of the following command:
tr -cs "[:alpha:]" "\n*" <input.file | grep "string"
which scans input.file for words containing string, even if input.file
Here is another way to do this:
strings input.file | grep "string"
See Taking advantage of the OMVS shell
for more information about shell commands.
You can also find information on the web at
Functions and Commands for z/OS Unix System Services.