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. - Eric -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock