C:\install>mgrep -i "\@\@.size on disk" get_install_consumption.log
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Problem signature:
Problem Event Name: APPCRASH
Application Name: mgrep.exe
Application Version: 0.0.0.0
Application Timestamp: 5295de2b
Fault Module Name: mgrep.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 5295de2b
Exception Code: 40000015
Exception Offset: 000108f2
OS Version: 6.1.7601.2.1.0.18.10
Locale ID: 1033
Additional Information 1: d860
Additional Information 2: d860826b86c5b47e89f20a7c2a9449ff
Additional Information 3: d2d2
Additional Information 4: d2d2c268dae3c8de889a2e1c5a689b43
Anonymous
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
this was on Windows server 2008 R2 Enterprise service pack 1
I was attempting to use an OR in a pattern match similar to the following
egrep -i "\@\@\@+|size on disk"
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
strange, this site is removing two asterisks when displaying . so (star)(dot)(star) is what I am attempting to use, which wouldn't act as an or any way
Hi, sorry, I have some trouble finding out what the problematic pattern was exactly.
According to the description, this is the pattern that caused the crash:
C:\install>mgrep -i "\@\@.size on disk" get_install_consumption.logYou wrote that "site is removing two asterisks when displaying ." Did you mean this instead, then?
C:\install>mgrep -i "\@\@*.*size on disk" get_install_consumption.log(Note: I am using backtick (`) for formatting the command line here - "Code Block" formatting indeed does not work. Please try to use backtick in your replies.)
Last edit: Peter Istvan Lenard 2015-10-30
Regarding the OR-expression you mentioned:
egrep -i "\@\@\@+|size on disk"I don't think
@demanded an escaping - it is not a special character as I remember. The OR, however, needs to be escaped for grep/mgrep. So something like:mgrep -i "@@@+\|size on disk"would be an equivalent of the
egrepcommand line mentioned above.(I haven't checked the usage of
+, yet.)Also, could you post a few example lines that you would like to capture? (Again, please use backticks (`).) Thanks.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
attaching the file I am aggregating using sysinternals du
I want to aggregate the break lines @@@ and those containing size on disk.. to get output like the last command below... egrep
your command did work for me
mgrep -i "\@\@\@+|size on disk" get_install_consumption.log
You are correct the command causing the error.. I'm trying escaping with back ticks..
mgrep -i "\@\@
*.*size on disk"egrep -i "\@\@+|size on disk" get_install_consumption.log
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Size on disk: 216,014,283 bytes
Size on disk: 350,277,476 bytes
Size on disk: 98,064,573 bytes
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Size on disk: 216,015,425 bytes
Size on disk: 89,881,845 bytes
Size on disk: 562,010,244 bytes
Size on disk: 350,277,476 bytes
Size on disk: 98,064,573 bytes
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Size on disk: 217,248,169 bytes
Size on disk: 89,881,845 bytes
Size on disk: 562,010,244 bytes
Size on disk: 350,277,476 bytes
Size on disk: 98,064,573 bytes
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Size on disk: 300,208,357 bytes
Size on disk: 87,018,365 bytes
Size on disk: 562,010,244 bytes
Size on disk: 350,450,338 bytes
Size on disk: 98,064,573 bytes
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Last edit: Anonymous 2015-10-30
Thanks for the input - I managed to reproduce the crash with the attached file + the following command:
mgrep -i "\@\@*.*size on disk" get_install_consumption.logI will try to fix it as soon as possible.
In the meanwhile, this is what I recommend for you to use:
mgrep "@@\|Size on disk" get_install_consumption.logIe. lines containing at least two @'s OR the string "Size on disk".
I believe this is the simplest pattern for your purpose.
Last edit: Peter Istvan Lenard 2015-10-30
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Yeah, once I got your OR syntax I ended up with something that will work great until the year 3000 :)
mgrep -i "\/2+|[0-9][0-9]\:+|\@\@\@+|size on disk" get_install_consumption.log
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Fri 10/30/2015
11:37 AM
Size on disk: 300,210,626 bytes
Size on disk: 87,018,365 bytes
Size on disk: 562,010,244 bytes
Size on disk: 350,450,338 bytes
Size on disk: 98,064,573 bytes
Fri 10/30/2015
11:37 AM
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Nice. Still, I think there are a bit more escapes than necessary :)
Nevertheless, the crash itself should be fixed in version 1.0.1. Please check it.
Last edit: Peter Istvan Lenard 2015-11-02
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Yep I notice now you don't need the escapes on the @ and...
mgrep -i "\@\@
*.*size on disk" no longer causes issueGreat. Thanks for the help, I'm closing the ticket, then.