
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Basic Shell Scripting
Create a script shell that processes the current time and displays 4 outputs as follows:
i. Displays the current time in the format HH:MM:SS.
Example: Today is 12:30:01
ii. Displays per current time element from midnight.
Example : 12 hours 30 minutes 01 seconds elapsed from last midnight
iii. Displays per current time element until midnight.
Example : We will have 11 hours 29 minutes 59 seconds until next midnight
iv. Displays the numbers 1 to the difference of those hours on the same row separated
character tilde (~) except the last number.
example picture:
**note: save as time.sh or copy paste the script on your answer

Transcribed Image Text:S ./time.sh
Today is 12:30:01
12 hours 30 minutes 01 seconds elapsed from last midnight
We will have 11 hours 29 minutes 59 seconds until next midnight
1~2~3~4~5~6~~8~9~10~11
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- W P Details I am using JES and I have to create an animation using JES. The animation must be at least 5 and at most 10 seconds long, the animation frams rate must be 30 so you will need to create at least 150 frams , the canvas for the animation should be 300-500 pixels in both height and width. The program should use exactly one for loop and they must be at least 3 things in motion in the animation, they must all move differently in a substantial way. other requirements are in the picture. please I need this as soon as possible . Thank you in advance must all move differently in a substantial way. 1. At least one "thing" must be a filled drawing object (i.e., use addArcFilled or addRectFilled or addovalFilled) 2. At least one "thing" must be an image 3. The other "thing" can be anything - other drawing objects, small pictures, whatever but it must be different than object 1 & 2 above. If using a filled object, it must be a different type of object and a different color than used for…arrow_forwardInstructions in python: Create a compression algorithm that will compress the text "nnneennwnneeeennwwnneeeessseeenneeesswsswwwsssswww" in the parchment piece into a smaller form. The algorithm must include simple instructions of no more than 1 or 2 sentences. It is recommended that you use basic ASCII characters, as the focus here is the algorithm rather than the physical space occupied by the result. Create a copy of this spreadsheet to organize your results and calculate the compression ratios. After working for about 10 minutes, you can access a clue: 2D Map. After another 10 minutes, you can view the 2D Map with Terrain. There are many correct answers to this exercise.arrow_forwardThere should be two files or codes for this solution: the distance code and the second code fallingdistancearrow_forward
- recording or a file upload Using an Arduino UNO or Arduino Nano, a breadboard, a 7-Segment Display, and the 4x4 keypad write a C program in Microchip Studio that will do the following: . When a number is pressed on the keypad, display the corresponding number in the 7-Segment Display. Blink the Decimal Point (DP) a specific number of times when each button of the letters are pressed. For "A" blink 10 times, for "B" blink 11 times, for "C" blink 12 times, for "D" blink 13 times, for "*" blink once long (1000ms), for "#" blink twice long (1000ms) Use 4 10 pins on a single port for the column control • Use 4 10 pins on a single port for the row control . Do not use PORTDO or PORTD1 What to submit: • A short video showing the functionality. • Your C code as a "c" or "txt" file.arrow_forwardFunction written in JavaScript Please thanks! Function 1: Password Checkerfunction _one(pwd)Create a JavaScript function that meets the following requirements:• Is passed a string representing a potential password• The function determines if the password meets the following requirementso The length of the password is between 8 – 12 characterso Contains at least 1 number (numeric character)o Contains at least 1 special character▪ Special characters are punctuation characters that are present on standard keyboard namely any character encapsulated within the following double quotes“(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)”o Contains at least 1 capital letter• The function should NOT employ the use of regular expressions to solve the problem• The function also displays the result (console log) of its password validation as illustrated below.• The function returns a Boolean back to the caller indicating valid or not.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education