Redirection. Help pls.
Hello there. Im stuck on a task.
it`s the task:
Search the file 'data' for all of the lines that contain the pattern 'linux'
and put those lines in the file 'matches'.
You entered: grep "linux" date > matches
Please try again.
I tried lots of variants
1) grep linux date > matches
2) grep 'linux' date > matches
3) grep linux date >> matches
May be something`s wrong with grep command?
I just dont get it >.>; it should work fine. Where is my mistake folks?