Search Results

Search: Posts Made By: thefang
9,359
Posted By Chubler_XL
Also a starting point to give awk a try: awk...
Also a starting point to give awk a try:

awk \
-v S="@CAL RtlInitAnsiString @PA1 0x0012f740" \
-v E="@CAL memmove @PA1 0x0012f740" \
-v M="@MATCH" \
-v L=3 '
$0~S{if(R)print...
9,359
Posted By Klashxx
You should pick one tool and keep stick to it. ...
You should pick one tool and keep stick to it.
A starting point to give python a try:
#!/usr/bin/env python
import re
import sys

pattern = re.compile(r'''
...
9,359
Posted By durden_tyler
$ $ $ cat input1 @LIB ADVAPI32.dll @CAL...
$
$
$ cat input1
@LIB ADVAPI32.dll @CAL RtlInitAnsiString @PA1 0x0012f740 @PA2 "CriticalSectionTimeout" @RET0
@LIB ADVAPI32.dll @CAL memmove @PA1 0x0012f740 @PA2 0x0012f68c @PA3 4 @RET 0x0012f8bc...
9,359
Posted By Klashxx
Interesting regex (python shell again): >>>...
Interesting regex (python shell again):
>>> text = '''
... @LIB ADVAPI32.dll @CAL RtlInitAnsiString @PA1 0x0012f740 @PA2 "CriticalSectionTimeout" @RET0
... @LIB ADVAPI32.dll @CAL...
9,359
Posted By ahamed101
Need response to Don's questions as it looks like...
Need response to Don's questions as it looks like there can be a lot a varying cases.

Requirement Analysis not complete ;)

With the current data you have provided, try this

awk '
/@CAL...
9,359
Posted By Don Cragun
What should the output be for the input: @LIB...
What should the output be for the input:
@LIB ADVAPI32.dll @CAL RtlInitAnsiString @PA1 0x0012f740 @PA2 "CriticalSectionTimeout" @RET0
@LIB ADVAPI32.dll @CAL RtlInitAnsiString @PA1 0x0012f740 @PA2...
9,359
Posted By Klashxx
From python shell: >>> import re >>> text =...
From python shell:
>>> import re
>>> text = '''
... @LIB ADVAPI32.dll @CAL RtlInitAnsiString @PA1 0x0012f740 @PA2 "CriticalSectionTimeout" @RET0
... @LIB ADVAPI32.dll @CAL memmove @PA1...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 09:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy