aguea asia
VimTip
@VimTip
Joined February 2012
Tweets
41
Following
11
Followers
39
Likes
2
Photos and videos
Photos and videos
Tweets
VimTip retweeted
TipOfBash
@TipOfBash
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
TipOfBash
@TipOfBash
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
VimTip
@VimTip
5 Apr 2014
CTRL o : go to previous location in vim CTRL i : go to next location in vim
3
3
VimTip retweeted
TipOfBash
@TipOfBash
5 Apr 2014
ls -ltr
$PWD
/* List file names in the current directory with full path
2
VimTip
@VimTip
17 Mar 2014
:b2 go to second buffer after :ls (listing all the buffers)
VimTip
@VimTip
17 Mar 2014
:ls list all the buffers
1
VimTip
@VimTip
17 Mar 2014
:wn Save the current buffer and move to the next
1
VimTip
@VimTip
16 Mar 2014
:s/\(.*\) \(.*\)/\2 \1/g swap your first name with your last name in Vim - limitless possibilities :)
2
VimTip retweeted
TipOfBash
@TipOfBash
7 Mar 2014
mkdir -p /a/b/c/d : creates the entire directory structure with folders a, b, c, d
1
VimTip retweeted
TipOfBash
@TipOfBash
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
VimTip
@VimTip
25 Feb 2014
:bn takes you to the next buffer in vim.
VimTip retweeted
TipOfBash
@TipOfBash
18 Feb 2014
!13 : Execute the 13th command from bash history.
1
VimTip retweeted
Unix tool tip
@UnixToolTip
9 Oct 2013
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
TipOfBash
@TipOfBash
29 Sep 2013
“
@TipOfBash
: Unlock another user's session from root : loginctl list-sessions loginctl unlock-session <session_id>”
1
VimTip retweeted
TipOfBash
@TipOfBash
1 May 2013
"cp filename{,.back}" : Take backup of the file easily. The command expands to "cp filename filename.back"
5
VimTip retweeted
Sandeep Singhal
@sandeepsinghal
26 Mar 2013
@vimtips
hitting # on the word would do the same thing.
1
VimTip retweeted
TipOfBash
@TipOfBash
25 Mar 2013
top -M : see stats in MB/GB format.
2
VimTip retweeted
Sandeep Singhal
@sandeepsinghal
8 Mar 2013
When in doubt, err on the side of simplicity - from the paper "Is Design Dead" by fowler
2
VimTip
@VimTip
8 Mar 2013
Open a list of files that were output of a previous command. For e.g. "find"
tinyurl.com/ac2n2mw
2
VimTip
@VimTip
20 Oct 2012
Vim is a language if you can understand .. cw change word, c$ change current to end of line ..
Load more