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.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

fg<br />

Exit Values<br />

Messages<br />

Portability<br />

See Appendix F for more information.<br />

0 Successful completion<br />

>0 No current job<br />

Possible error messages include:<br />

Not a stopped job<br />

Job was not stopped.<br />

P<strong>OS</strong>IX.2 User Portability Extension.<br />

Related Information<br />

bg, jobs, kill, ps, tcsh<br />

fgrep — Search a file for a specified pattern<br />

Format<br />

Description<br />

fgrep [–bcilnqsvx] [–e pattern] ... [–f patternfile] ... [pattern] [file ...]<br />

Note: The fgrep utility is fully supported for compatibility with older <strong>UNIX</strong> systems.<br />

However, it is recommended that grep –f be used instead because it may<br />

provide greater functionality and is considered the standard for portable<br />

<strong>UNIX</strong> applications as defined by P<strong>OS</strong>IX.2 IEEE standard 1003.2-1992.<br />

See grep.<br />

file — Determine file type<br />

Format<br />

Description<br />

file [–BcdEh] [–f filelist] [-M magic] [–m magic] file ...<br />

file -i [-h] [–f filelist] file ...<br />

file determines the format of each file by inspecting the attributes and (for a regular<br />

file) reading the contents of the file. If the file is an executable, its addressing mode<br />

is determined for output. If file is not an executable, file compares each file to<br />

entries found in one or more magic files to determine their file type.<br />

file then divides files that do not match a template in the magic file into text files<br />

and binary data. Then, by reading the text files and making an informed guess<br />

based on the contents, file further divides text files into various types such as C<br />

programs, assembler programs, files of commands to the shell, and yacc or lex<br />

programs.<br />

file displays the name of each file along with the file type.<br />

276 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!