166 reputation
15
bio website
location
age
visits member for 4 years, 7 months
seen Oct 15 at 14:28

Aug
7
comment Sorting human readable file sizes
OSX doesn't have this option. You can use homebrew to brew install coreutils (which prepends all the coreutils commands with a 'g'). You can then do gdu -hs * | gsort -h.
May
3
awarded  Constituent
Apr
29
awarded  Caucus
Jan
8
awarded  Revival
May
3
answered vim with wdiff?
Feb
20
awarded  Editor
Feb
20
revised Is it possible to run vim on a remote server via ssh but show UI on MacVim on my laptop?
added 1 characters in body
Feb
20
answered Is it possible to run vim on a remote server via ssh but show UI on MacVim on my laptop?
Jan
18
comment How to remove this symbol “^@” with vim?
this works with substitute(), but Ctl-VCtl-Shift-2 does not.
Aug
10
comment The suggested way to handle pip(easy_install) with homebrew?
I don't have a crystal clear solution, except perhaps use a few installation methods as possible.
Aug
10
comment Specific case of non-greedy `grep`
Not really...Grep will filter your input with regular expressions: either everything matching or everything matching a pattern (-v option, very handy). Sed will edit your input with regular expressions - it can do what grep can and more. But its also more complicated (ie, to make it do the standard grep foo inputFile you'd type sed -n '/foo/ p' inputFile). Moral of the story: use the simpler tool for the simpler problem!
Aug
9
comment Specific case of non-greedy `grep`
Habit, honestly. That said, you can accomplish more with sed than grep. It searches/replaces for single lines as well across multiple lines of your input. Suppose you wanted to filter all of the 'foobar' patterns in a file and then transpose foo with bar (barfoo). You could do that with sed, but not grep: sed -E 's/(foo)(bar)/\2\1/' inputFile
Aug
9
comment Specific case of non-greedy `grep`
yes, that would also work. Generally the more restrictive your match the better. Just as an aside I hadn't seen the -o switch used with grep before (learn something every day!). Usually I'd use sed for something like this. In sed would have looked like this: sed -E 's/^.*(X[^.]*\.).*$/\1/' inputFile.
Aug
9
awarded  Teacher
Aug
9
answered Specific case of non-greedy `grep`
Aug
9
comment How do I detach a process from Terminal, entirely?
what a fantastically succinct answer. Bravo!
May
15
comment How to disable Utility Manager (Windows Key + U)
This doesn't work for me - the utilman is just recreated the next time I press Windows-U
May
15
awarded  Supporter