This is the exact question: Append to a file in your home directory called 'water.txt' a list of all processes that have the string 'er' at the end of their name.
I know the command to list running process are ps -A, or top but the hard part is the appending only certain processes to a new file based on pattern match
The two commands that come to mind are cut and grep but I don't know exactly how to combine them together especially because the list of processes are not stored in a file/ or are they?