everything and nothing

allskonar

11/7 2007

November 8th, 2007

It’s educational to watch other people at work! especially if they are really good at what they do. I had such luck today. I was clever enough to make sure I had a backup of my .bash_history file so I can go through his actions and try them myself in the hopes that I would remember them later on when I needed them again and that’s where I had this idea of maintaining a page where I can put down those tricks for me to remember and help others that happen to stumble upon it.

The fist thing I learned was that when you are in vi on the terminal and you want to quickly go out of it and get to the console you can hit control+z and that brings you to the bash shell and then you type fg to get back and if there is more than one buffer open you can do fg1 fg2 etc, pointer you can also get to the shell via the :sh command.

Here are some other things.


svn status | grep "^?" | grep -v tmp |   \\
      sed -e 's/^? *//' | xargs svn add
svn diff > changes_to_patch

svn diff -rHEAD:999 > changes_to_patch
patch -p0 < changes_to_patch

svn log --stop-on-copy

Leave a Reply

 
allskonar Powered by Mephisto