I'm trying to create a scheduling program. Basically, the way I want it to work is that you can choose an option to add or remove an item from your schedule, or view your schedule for today. When you choose to add an item, you give it the information, and it saves it to a text file. I want to make it so that when you view your schedule, it prints any lines that have today's date corresponding to them. Is there any way to accomplish this?
Let <path/filename> equal the full path to your text file.
Let {searchyword} equal the part or entire word you are searching for.
sudo cat <path/filename> | grep -i {searchword}
Dont' forget the / at the start of your path