-1
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.
Look at
grep
. – soandos – 2012-06-20T11:21:40.597Your edit made this a completely different question, and it is still not precisely described what you actually want. No developer with experience is willing to work towards such "requirements"... – DevSolar – 2012-06-20T11:56:12.563