Remove exact matching word using sed

This thread saved my life… Advertisements

Posted at 11:45 am on December 12, 2011 | Leave a comment | Filed Under: Uncategorized | Continue reading

How to prevent GIMP for opening PDF files

Following this solution found on Archlinux’s forums I was able to prevent GIMP for opening PDF files: sed -i -r ‘s|=(gimp\.desktop);([^;]+?)|=\2;\1|’ /usr/share/applications/mimeinfo.cache For some reason GIMP was the preferred application to open this type of files, but is not very nice.

Posted at 11:10 am on July 6, 2011 | Leave a comment | Filed Under: GNU/Linux | Continue reading

About

Binky is a clown and a geek. His most important things in his life are music, women and technology -in this order-.

Categories