0% found this document useful (0 votes)
40 views1 page

UNIX Sample Program

The document describes how to create a daily signature file by copying an existing mysig file called dailysig, running the fortune command to output a random message, and appending the message to the dailysig file.

Uploaded by

xxcarxx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views1 page

UNIX Sample Program

The document describes how to create a daily signature file by copying an existing mysig file called dailysig, running the fortune command to output a random message, and appending the message to the dailysig file.

Uploaded by

xxcarxx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

filename - mysig (with a random message)

fortune command-outputs a rnadom snippet of wisdom


/usr/games
use cp command to make a tremporary copy of mysig called dailysig
#!/bin/ksh
cp mysig dailysig
/usr/games/fortune>>dailysig

You might also like