520 reputation
26
bio website
location Chicago, IL
age 26
visits member for 2 years, 9 months
seen 15 hours ago

Nov
1
comment What is the difference between echo `date`, echo “`date`”, and echo '`date`'?
@BonsiScott The extra space between "Nov" and "1" is removed in HTML as well ;)
Sep
15
comment Why not always use rsync?
sometimes it is just not worth typing those few extra characters - I've aliased pcp (for "progress copy") for that ;)
Sep
2
answered How to do multiple brace expansions without combinatorial explosion?
Aug
29
comment timestamp before an echo
@derobert Because the implementation is hidden away in a function, echo_time could just use the OP's date+echo construct
Aug
28
comment Using grep or awk
~headtilt~ PHP is on there but Perl isn't?
Aug
19
comment Why cat, grep and other commands can't understand files starting with minus sign?
@val0x00ff I think your first example was meant to be cat ./--1 ;)
Aug
10
answered Make bash use external `time` command rather than shell built-in
Jul
27
comment VIM commenting out what I paste
@valbaca You can use backticks to create code blocks in comments
Jul
10
comment When wouldn't one want `cp` to be recursive?
@terdon Unless it was just entirely reversed, with something like -N for "no-recurse"
May
16
comment What is the difference between “sort -u” and “sort | uniq”?
+1 to offset the naysayers because "there's no way to do this directly from sort" does answer the question...
Apr
28
comment Why isn't Linux embraced as the official GNU kernel?
This might be on-topic on programmers.SE, if it does get closed here. Not sure though, as that one has been floundering for a while now - its mods seem to change the scope nearly every month, based on what does and does not get closed.
Apr
13
comment Command 'date +FORMAT' — What are %a, %A, %b, etc. called?
@TheoneManis Just an example of that T not being special. Also, I was having a weird day at work when I typed that (listening to co-workers' conversations).
Apr
12
comment Command 'date +FORMAT' — What are %a, %A, %b, etc. called?
Tip: date +"You will die in the year %Y"
Apr
11
comment Triple compression and I only save 1% in space?
@JoelDavis Sometimes it's hard to tell...
Apr
10
comment Triple compression and I only save 1% in space?
@DanNeely You, uh, do realize what the trick is, right?
Mar
31
comment When is it safe to disconnect my external HDD?
"Safely remove" on Windows has almost always worked for me; it may be worthwhile to figure out what the problem is on your computer.
Mar
20
comment store command before pressing ctrl+c, revive afterwards
I do something similar - I'll go to the front of the line and insert echo. When I need to bring it back, go up in the history, remove the echo, and there we go. One advantage is not needing to fiddle with escaping quotes if the command already uses both.
Mar
15
comment Delete files in directory without erroring if it's already empty
Just a note, I'd leave out -type f since there may be temporary directories as well (although the example in the question doesn't account for them, so they're probably not there...)
Mar
8
answered Count lines matching pattern and matching previous line
Jan
21
awarded  Critic