Words lists in a shell Mar 03, 2012 I often want to manipulate set of words that I want to compare. This post present some of the one lines that I frequently use to manipulate such lists. Get a set of words from a text file If you start from a text file, the following command will convert it to a list of words: cat input.txt |\ sed 's/\>/\n/g' |\ sed 's/^[[:space:]]*//' |\ sed 's/[[:space:]]*$//' |\ grep -v "^$" |\ sort |\ uniq > output. ...
Alt Car in Emacs for OSX Aug 14, 2011 When I installed emacs for OSX, right option key acted as Meta instead of my beloved alt-car. It can be fixed using these steps: If you use emacs 23 or prior, install package.el Add marmalade to the list of repositories in your .emacs: ```lisp ;; Adds marmalade to package.el (require 'package) (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) (package-initialize) ``` Refresh your package index using M-x package-refresh-contents Install mac-key-mode using M-x package-install mac-key-mode ...