Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

uestion 2 [ 6 Points ] Write a shell script that manages a to - do list. Store the to - do list in a

uestion 2[6 Points]
Write a shell script that manages a to-do list. Store the to-do list in a file called todo.txt in the format: (0 for not started, 1 for doing, 2 for complete). The features are as follows:
./todolist.sh -> Print all the tasks in to-do list that are not completed
./todolist.sh display -> Print all tasks with their serial numbers
./todolist.sh add -> Add the task in to-do list (in category of not started)
./todolist.sh todo -> Print all the tasks not started yet
./todolist.sh doing -> Print all the task whose status is 'doing'
./todolist.sh complete -> Print all completed tasks
./todolist.sh mark_complete [1-8 integers, say n1..n8]-> Mark as complete all the commands whose serial numbers are n1, n2,..., n8. Note that user may enter any number of serial numbers, upto 8.
./todolist.sh delete [1-8 integers]-> Delete all the tasks whose serial numbers are given as arguments
For any other argument give the appropriate error message.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 18th International Conference Dasfaa 2013 Wuhan China April 22 25 2013 Proceedings Part 2 Lncs 7826

Authors: Weiyi Meng ,Ling Feng ,Stephane Bressan ,Werner Winiwarter ,Wei Song

2013th Edition

3642374492, 978-3642374494

More Books

Students also viewed these Databases questions