Write a script to display the time every 15 seconds. Read the date man page and display the time, using the %r field descriptor. Clear the window (using the clear command) each time before you display the time.

What will be an ideal response?


$ cat datescript
while (true)
do
clear
date +%r
sleep 15
done

Computer Science & Information Technology

You might also like to view...

Write a code fragment that reads 10 integer values from the user and prints the highest value entered.

What will be an ideal response?

Computer Science & Information Technology

Horizontal rules are not

(a) followed by a line break. (b) preceded by a line break. (c) shaded by default. (d) used to break up text into meaningful units.

Computer Science & Information Technology

Impress presentations have a file extension of ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

To select all the text in a placeholder, you click anywhere in the text

Indicate whether the statement is true or false

Computer Science & Information Technology