I have a professor who stores homework assignments in many files spread across different sub-directories in a lecture folder with the header "TODO:" I'd like to output all these todo's to a single text file in nano instead of navigating from one assignment file to another.
I tried to make an alias for this command, since I use it so much, but whenever I try to execute it, the cursor just blinks and nothing happens.
alias todo='cd /home/csc103/Desktop/shared/csc103-lectures && grep -Rw "TODO:" --after-context=6 --include="*.cpp" . > todo.txt && nano todo.txt'
What am I doing wrong here?
Also, if it's of any relevance I'm issuing these commands on an Arch Linux install in VirtualBox.