1,717 reputation
1230
bio website
location
age
visits member for 3 years, 10 months
seen Oct 17 at 16:56

Jul
21
accepted Simple sed replacement of tabs mysteriously failing
Jul
19
awarded  Inquisitive
Jul
18
revised Simple sed replacement of tabs mysteriously failing
deleted 1 character in body
Jul
18
comment Simple sed replacement of tabs mysteriously failing
Since it didn't work with Ruby either, I'm not sure why I would conclude that OS X's sed is the problem. Do you have a reason to believe that's the problem? I'd be happy to install GNU sed if I had reason to believe it would solve the problem, but it seems like I've pretty much ruled that out.
Jul
18
asked Simple sed replacement of tabs mysteriously failing
Jul
16
comment Why does passing a HEREDOC as a string to `ruby -e` not work?
You provided the key insight (and answered first!) and it was fairly obvious to me after reading your answer that I could add double quotes around the the $() expression, but it might not be so obvious to everyone who reads this later, so I'm torn on which answer to accept.
Jul
16
comment Why does passing a HEREDOC as a string to `ruby -e` not work?
Initially I thought this was flawed because I wouldn't be able to use double quotes inside the code, but then realized that even though the HEREDOC is a stream rather than a string (as Kaz points out) it will still hide any internal double quotes from the shell interpreter.
Jul
16
asked Why does passing a HEREDOC as a string to `ruby -e` not work?
Jul
13
awarded  Popular Question
Jul
8
comment How do I get rid of Cygwin's /cygdrive prefix in all paths?
I didn't know there was a way to get the windows drives at /. Did you have that before? (Or at /cygdrive/?) I've always just lived with the fact that I have to know which Windows drives are available, and I hardly ever use them anyway.
Jul
3
revised Strip color on OS X with BSD sed (or any other tool)
added 2 characters in body
Jul
2
comment Strip color on OS X with BSD sed (or any other tool)
The bash version worked without any adjustment needed: you deserve more upvotes than all the people on commandlinefu.com!
Jul
2
accepted Strip color on OS X with BSD sed (or any other tool)
Jul
2
revised Strip color on OS X with BSD sed (or any other tool)
added 3 characters in body
Jul
2
awarded  Curious
Jul
1
asked Strip color on OS X with BSD sed (or any other tool)
Jun
30
accepted How to make a variable from a subshell available in the parent shell
Jun
30
revised How to make a variable from a subshell available in the parent shell
fix error
Jun
30
asked How to make a variable from a subshell available in the parent shell
Jun
23
comment What is the correct form of the HostnameSuffixes SSH keyword?
Wouldn't the sort of thing you're doing in your examples be accomplished as well with Host leguin williams\n HostName %h.gilles.name\n UserName gilles?