first of all, thank you for your contribute to this forum! I switched to ubuntu a few months ago for working reasons and these pages are a great help!
Now, getting to the point:
I was trying to count a specific pattern in a text file:
grep -c [pattern] [filename]
Now: the pattern was: 'greater than' sign, i.e.: >
thus the command I gave was: grep -c > [filename]
I got this message:
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
But now the text file was empty! (fortunately I had a backup...).
Why? Did I mess up in some previous operation or was it the last command I gave? I am just trying to make sense of this.