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
rar a -m5 -R output.rar /etc/
ssh username@win2000server -i privatekey
query session SESSIONNAME USERNAME ID STATE TYPE DEVICE >console 0 Conn wdcon rdp-tcp 65536 Listen rdpwd rdp-tcp#7 fakeuser 1 Active rdpwd
tsdiscon 1 /v Disconnecting sessionID 1 from sessionname RDP-Tcp#7