Next: Change Permissions and Execute
Up: Basic Shell Scripts
Previous: Basic Shell Scripts
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.