Educating yourself does not mean that you were stupid in the first place; it means that you are intelligent enough to know that there is plenty left to 'learn'. -Melanie Joy

Tuesday, 5 June 2012

vim/gvim-Tips and Tricks

June 05, 2012 Posted by Dinesh No comments
Tip 1 : Use markers to set a place where you want to go back quickly or to delete some block of code ma   - mark current position as 'a' [ can use a-z in same file, or can use A-Z between files] 'a     - go to mark a d'a   - delete current position to mark a [ can use 'p' after this to paste that block ]   Tip 2:  Do you want to reverse the entire file or a block...

Monday, 4 June 2012

Creating A List Using vim

June 04, 2012 Posted by Dinesh No comments
Some time you may need to insert a list of ascending numbers in a file. We can do this using vim very easily. Method 1 : :put =range(11,15) This will create a series of increasing numbers after the current line including 11 and 15. output will be-      11 12 13 14 15   Method 2 : Some times if you want to add a constant predefined string before the number series, then you...

`Tar`- An Ultimate Archive Utility

June 04, 2012 Posted by Dinesh , , No comments
How to use tar tar  [options] [name of tar file to be created] [list of files and directories to be included] 1. Creating an archive using tar            $ tar -cvf target.tar file1 file2 dir1        $ tar -cvzf target.tar.gz dirname/             [ creates gzipped tar...

'cat' can be harmful..

June 04, 2012 Posted by Dinesh , , No comments
'cat' can be harmful at times. some people might have lost the data because of improper usage of cat command like cat > filename.txt, or it can do over write some existing files data without prompting the user. to get rid out of these situations 1. open the terminal 2. execute " set -o noclobber " that's it. now next time when cat tries to over write the existing file it will prompt the us...