Steve Simms

Home

One-liner: Open all modified, uncommitted files

Submitted by Steve Simms on Sun, 07/02/2006 - 1:35pm.
  • Productivity
  • Programming
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.)

  • About
  • Humor
  • Programming
  • Tech
  • Sound
  • Contact Info
  • What's a Deef?
My Amazon.com Wish List

Welcome to Deef's Net, Steve's online home.

If you think of his professional web sites as his office and workplace, this is where he hangs out in the evenings, chats about what happened during the day, and explores some hobbies.

Recent Posts

  • Highlights from 2008
  • August E-Mail Statistics
  • A new kind of job
  • A Public Service Postal Announcement
  • You know your computer is slow when...
© 2000-2008, Stephen Simms. All Rights Reserved.