Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!