I would like to create a sorted list of all TCP services found in the file /etc/services
. Pipe the output of the command grep tcp /etc/services
into the command sort
. Redirect the output of this pipe into the file ~/pipelab.txt
.
I don't know what I am doing wrong. I keep getting a error message that my output is wrong?
This is what I tried last: grep tcp /etc/services > ~/pipelab.txt | sort
Thank you for any help.