Is it possible to use regex in zypper? The reason I asked this is because sometimes zypper se lists too many packages and reading through them is annoying. It would be nice if I could just search for a regex and zypper could recognize them and substitute as needed. I know you can use awk and do stuff like this (thanks Jetchisel):
awk '$2 ~ /^name$/' < <(zypper se name)
But this is ‘ugly’ and it would be great if you could do it with just zypper. So any way to do it?
I should say the man page of zypper shows many options to refine a search. Wildcards are mentioned, case sensitivety, match-all/any/substrings/words/exact. Does this realy n provide you witjh thh wanted output?
Any idea why this happens? I tried the term ‘search’ on the zypper man page and it gave me this SUSE Paste. I also tried these two commands and they worked fine with no error.
man bash | grep regex
man bash | grep 'search'
It seems to be something with the zypper man page, any idea what it could be?
Note that I have done this on openSUSE 12.3, thus the man page is different from the 13.1 one, thus the line numbers are different, but the problem is the same.
Some how i am not convince that it is the man command that generates this error but zypper man page or zypper it self. (someone correct me if im wrong.)
man bash >stdout 2>stderr
cat stderr
man sed >stdout 2>stderr
cat stderr
And other executables that i have tried does not produce the same error, so alanbortu](https://forums.opensuse.org/members/alanbortu.html) dig some more and file this bug so that Geeko can eat it already!
One thing is for sure, it is not zypper itself. That program is not run when you consult it’s man page.
It is man that protests at the conversion of the man file through the ASCII driver. That is the one that does not care for bold, etc output when it runs on a VT100/ASCII type of terminal (like konsole). That means IMHO wrong formatting in that file.
I don’t speak groff, but Man usage - The GNU Troff Manual doesn’t say anything about non numeric expressions after “.TP”. Yes, please, feel free to open a bug report.