1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ede4ka [16]
3 years ago
14

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.
Computers and Technology
2 answers:
attashe74 [19]3 years ago
6 0

Explanation:

An infinite bash while loop can be used to implement the logic

The syntax of infinite bash while loop is

while :

do

# statements

done

We can create any desired date and time format by utilizing the field descriptors. Field descriptors denote various components of date and time

For example:

date +  %r       %I:%M:%S %p

date + %D %m/%d/%y

date + %R %H:%M

echo command displays the contents of the variable Time

sleep 15 represents a gap of 15 seconds between the display

Then clear command is used to clear the window

Linux Code:

while :

do

Time ='date + %r'  

echo -n $Time

sleep 15

clear

done

o-na [289]3 years ago
5 0

Answer:

Check the explanation

Explanation:

<em>#the first line of code will be</em>

do

<em>#the second line of code will be</em>

Time=’date +%r’

<em>#the third line of code will be</em>

echo -n $Time

<em>#the fourth line of code will be</em>

sleep 15

<em>#the fifth line of code will be</em>

clear

and you're done

======================

CS534 HW 7

You might be interested in
Blender is used by which video game team member?
prohojiy [21]

Answer:

The 2nd one

Explanation:

6 0
3 years ago
What are the important points
LUCKY_DIMON [66]

Answer:

You must evaluate information

Explanation:

The first step to thinking critically is to accept information only after evaluating it. Whether it's something read or heard, critical thinkers strive to find the objective truth. In doing this, these employees evaluate by considering possible challenges and solutions. This process of vetting new information and considering outcomes is called evaluation.

6 0
3 years ago
Module 7: Input and Output, 7-13d: Checkpoint
Oksi-84 [34.3K]

Answer:

F

Explanation:

6 0
4 years ago
The Research and Development Process has five steps what are they ?
valentina_108 [34]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

There are five steps used in any research and development project.

Step 1 – Locating and Defining Issues or Problems and get an idea about what is needed

Step 2 – Designing the Research Project, How you will solve the problem or get the solution of the problem

Step 3 – Collecting Data.

Step 4 – Interpreting Research Data.  

Step 5 – Report Research Findings.

3 0
3 years ago
In a short essay, discuss the question, “How are you an innovator?”
rusak2 [61]
What class Is this 4 ? I think we have some thing similar
7 0
3 years ago
Other questions:
  • To create smartart, switch to the insert tab and use a button in the ____ group.
    12·1 answer
  • What is scratch in information system .
    14·1 answer
  • What are the four requirements of a linear programming​ problem?
    8·1 answer
  • Which of the following statements is used to terminate the program when closing the frame?
    12·1 answer
  • Can someone please help me
    15·1 answer
  • Why is failure an important part of life and the engineering design process?
    13·2 answers
  • What is computer? Write is features <br><br><br><br><br>​
    14·1 answer
  • Adrian wants to run a digital movie clip that his friend shared with him through email. His system has 2 GB of RAM and 20 GB of
    9·1 answer
  • What are software applications?
    14·1 answer
  • When it comes to game mechanics, what is the most universal mechanic that is present in virtually every computer game that you c
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!