Archive :
  May 2006
  June 2006
  July 2006
  July 2007
  August 2007
  April 2008
  June 2008
  December 2008
  January 2009
  March 2009
  June 2009
  January 2010
|
Quick substitution in vi
When browsing source code, with line numbers sometimes one wants to compile and run it. However, the code would not compile because of the line numbers. Well, here is a quick fix; open the file in vi and enter the following "ed" command:
:1,$ s/...//
What does that mean? Starting from line 1 till the last line in the file, substitute the first three characters of each line with contents of the last two slashes (i.e nothing in our owr example).
posted by Amandeep 7/16/2006 12:46:00 AM | PERMALINK
unix tips and tricks
http://open.itworld.com/5040/featurelink_unix041209/page_1.html
posted by Amandeep 7/12/2006 03:36:00 PM | PERMALINK
Setting backspace Character in Terminal
What if you telnet into a system and backspace key stops working? Try the following:
stty erase ^v<press backspace immediately after control v>
posted by Amandeep 7/03/2006 08:18:00 PM | PERMALINK
 
 
|
|