Question about regex in linux commands.

Posted by smwikipedia on Stack Overflow See other posts from Stack Overflow or by smwikipedia
Published on 2010-05-31T14:18:05Z Indexed on 2010/05/31 14:23 UTC
Read the original article Hit count: 162

Filed under:
|
|

I ran the following command at linux bash:

apt-cache search hex.*(view|edit)

My intention was to find any software packages whose name/description contains the pattern 'hex.*(view|edit)'. But among the results I got this:

kipi-plugins - image manipulation/handling plugins for KIPI aware programs

How could this be in the results list? I didn't see any matching string in this result. Is this a bug of the apt-cache search command? Or do I mis-understand how the regex is used by this command?

Many thanks.

© Stack Overflow or respective owner

Related posts about linux

Related posts about bash