I use that notation at my log files:
[something-something]
somethings are necessary and variable length characters and numbers. My special log file includes line that has characters explained above. I.e.
Line 1: DEBUG [AS-kmksdf] Error occured!
Line 2: something somethingg..
I want to get Line 1. My log files grows dynamically and I show it at my screen with:
tail -f log.txt
How can I show just that special lines?
I know that I will use grep and my regex will be sth. like
[[A-Z]*-[A-Z]*]
how to combine them with that command. This doesn't work:
tail -f log.txt | grep [[A-Z]*-[A-Z]*]
I use cygwin with windows7 and can run some linux commands on my cmd.exe.

grep. – soandos Jun 20 '12 at 11:21