I want to create a date stamped log file called e.g.
- a list of who is logged into the system,
- the disk usage and
- my currently running processes.
The file I want to save to an existing directory situated in my home directory, and I would generate the filename using
file=$log_file day=$(date +%b-%d-%y) file_name=$log_file-$day
As for the remaining tasks: I am very new to write shell script, any help would be appreciated.