Unix Commands

March 3, 2012    blog unix school

Unix Assignment problem for Operating Systems class
Unixp

Problem:

Display the current time (format: hours:minutes:seconds (can be 24-hour clock)) Save it to the end of the file caldate.txt.

 

Impact:

The time will not save to the file caldate.txt

 

Solution:

Pipe the cat command to the date command in order to save to the file caldate.txt

 

date +”%T” | cat >> caldate.txt