One-liner: Open all modified, uncommitted files

emacs `cvs -nq up | grep -e '^[MA]' | awk '{ print $2 }'`

From bash (may or may not work in other shells), run emacs, opening all locally-modified or added-but-not-committed files (e.g. so that cvs diff can be run on them, or to allow last-minute changes before committing them directly from within emacs, rather than the shell.

You could also include new files that haven’t yet been added to CVS by changing [MA] to [MA\?] in the grep. Be sure to note that everything after “emacs” is enclosed in backticks (the key to the left of the “1” key on most keyboards), not apostrophes.

(I’m sure this could be converted to vi and/or Subversion pretty easily, as well.)

Recent Entries

Who's on first?
I’m going through the settings of a hard-core E-Mail program, and came across this lovely setting: Copy To Address to…
USPS Extreme Cost-Saving Measures
In the July 2010 edition of the PCC Insider (a USPS publication) is found the following statement: There are 26,000…
At 1:15am this morning
At a hotel, after a day of eventful travel and 3.5 hours of sleep the night before, it’s (almost) needless…
My Amazon.com Wish List