Joined February 2012
Photos and videos
VimTip retweeted
6 Apr 2014
search case insensitive in all the files recursively for the text "bash" and list the number of occurrences in each file grep -ric bash *
3
VimTip retweeted
6 Apr 2014
perform operation on all the csv files in the current directory $ for i in `ls *.csv` ; do echo $i; done do what you like instead of echo
2
5 Apr 2014
CTRL o : go to previous location in vim CTRL i : go to next location in vim
3
3
VimTip retweeted
5 Apr 2014
ls -ltr $PWD/* List file names in the current directory with full path
2
17 Mar 2014
:b2 go to second buffer after :ls (listing all the buffers)
17 Mar 2014
:ls list all the buffers
1
17 Mar 2014
:wn Save the current buffer and move to the next
1
16 Mar 2014
:s/\(.*\) \(.*\)/\2 \1/g swap your first name with your last name in Vim - limitless possibilities :)
2
VimTip retweeted
7 Mar 2014
mkdir -p /a/b/c/d : creates the entire directory structure with folders a, b, c, d
1
VimTip retweeted
25 Feb 2014
rm -f file[12345].txt : removes file1.txt, file2.txt, file3.txt, file4.txt, file5.txt Try the -i switch if you are feeling merciful
2
25 Feb 2014
:bn takes you to the next buffer in vim.
VimTip retweeted
18 Feb 2014
!13 : Execute the 13th command from bash history.
1
VimTip retweeted
One advantage of visually dull environments like the command line or an editor is that there isn't much to do there but work.
6
62
16
VimTip retweeted
29 Sep 2013
@TipOfBash: Unlock another user's session from root : loginctl list-sessions loginctl unlock-session <session_id>”
1
VimTip retweeted
1 May 2013
"cp filename{,.back}" : Take backup of the file easily. The command expands to "cp filename filename.back"
5
VimTip retweeted
@vimtips hitting # on the word would do the same thing.
1
VimTip retweeted
25 Mar 2013
top -M : see stats in MB/GB format.
2
VimTip retweeted
When in doubt, err on the side of simplicity - from the paper "Is Design Dead" by fowler
2
8 Mar 2013
Open a list of files that were output of a previous command. For e.g. "find" tinyurl.com/ac2n2mw

2
20 Oct 2012
Vim is a language if you can understand .. cw change word, c$ change current to end of line ..