You are not logged in.
Hello everybody,
I have a simple question where I wasn't able to find an working answer. I want to filter an pacman output for .desktop files, like e.g.
pacman -Ql mathematicaI tried a couple of different version (with some options) like
pacman -Ql mathematica | grep ".desktop"but best case it output also every file which has "desktop" in its path - but i only want the files with an .desktop extension. Maybe someone can help me?
Thanks in advance
Markus
Last edited by n-tchen (2017-11-07 13:47:05)
Offline
pacman -Ql | grep "\.desktop$"Offline
grep -E "*.desktop"Offline
Thanks for your fast replys. Allan's version works as I wanted it. Thank you very much!
I tried jasonwryan's version already beforehands - this variant also gave me all files with "desktop" in the path, not only those with .desktop as extension. But thanks anyway!
Markus
PS: Can I set the topic to answered, or does a mod need to do that?
PPS: I think i got it - I just added [SOLVED] to the topic
Last edited by n-tchen (2017-11-07 13:47:52)
Offline