next up previous contents index
Next: Change Permissions and Execute Up: Basic Shell Scripts Previous: Basic Shell Scripts   Contents   Index

Create the script

Using one of the editors covered in Section 4.5.2 create a file called datedir.sh that contains the following lines:

date > logfile
ls -al >> logfile

This is going to become a script that will write the date and the contents of the current directory into a file called logfile.



Joseph Colton 2002-09-24