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.

Examples<br />

As well as built-in commands, the shell has a set of predefined aliases:<br />

autoload functions history nohup stop<br />

hash integer r suspend<br />

See alias for details.<br />

Software distributed over computer networks such as Usenet is often distributed in<br />

a form known as a shell archive.In essence, a shell archive is a shell script<br />

containing the data of one or more files, plus commands to reconstruct the data<br />

files and check that the data was sent correctly. The following shows a sample shell<br />

archive:<br />

# This is a shell archive.<br />

# It contains the one file "frag.ksh"<br />

# To extract contents, type<br />

# sh file<br />

#<br />

if [ –f frag.ksh ]<br />

then echo frag.ksh exists: will not overwrite<br />

else<br />

echo extracting frag.ksh<br />

sed ’s/^X//’ >frag.ksh

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

Saved successfully!

Ooh no, something went wrong!