Deleting a line from a file matching criteria
sed -i '/x11-wm\/compiz/d' /etc/portage/package.keywords
The above example will remove any line that matches the regular expression x11-wm/compiz and edit the file in place "-i".
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
sed -i '/x11-wm\/compiz/d' /etc/portage/package.keywords