Eric Schrock ??:
> On Thu, Aug 23, 2007 at 11:34:20PM +0800, zhijun wrote:
>   
>> Alexandre Chartre wrote:
>>     
>>>  You can do:
>>>
>>>    *swap_vnodes::array "struct vnode *" 0t2048  | /Kn | ::grep .
>>>
>>> alex.
>>>       
>> Hi alex,
>>     Thanks, it works.
>>     Whille I still would like to know whether this is a way to specify 
>> "not equal" in mdb, so I can exclude the variables with  some specific 
>> value, something like ::grep .!= 0x1234
>>     
>
> Enclosure your comparison in quotes, such as:
>
>       ... | ::grep '. != 0x1234'
>
> The '!' character is a metacharacter that opens a pipe to an external
> shell command, so if you don't include the quotes it will try to spawn
> the program '0x1234' and pipe the output to it.
>   
Thanks, Eric. This eliminates most of my doublts.
Just want to be sure, it seems that from the below results, actually mdb 
taks '=' as the command, instead of taking 0x1234.
 > *swap_vnodes::array "struct vnode *" 0t2048 p |/Kn |::grep . != 0x1234
sh: =: not found

Best,
Zhijun
> - Eric
>
> --
> Eric Schrock, Solaris Kernel Development       http://blogs.sun.com/eschrock
>   


Best,
Zhijun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/mdb-discuss/attachments/20070824/6a1db49f/attachment.html>

Reply via email to