507 reputation
2514
bio website onlineinvestingai.com/blog
location Los Angeles, CA
age
visits member for 3 years, 2 months
seen Dec 10 at 19:46

Working in Ruby.

The Infinite Money Machine: http://www.onlineinvestingai.com/blog/


Dec
9
comment How to convert dashed string to spaces and caps?
Apparently there are some differences between OSX and Linux: unix.stackexchange.com/questions/13711/…
Dec
9
comment How to convert dashed string to spaces and caps?
No, I copied and pasted: echo "foo-bar-foo-bar" | tr "-" " " | sed -e 's/\b./\U&/g'
Dec
9
comment How to convert dashed string to spaces and caps?
Apparently this doesn't work on OSX. I get foo uar uaz nonce.
Dec
9
comment How to convert dashed string to spaces and caps?
This looks good but I got foo Ubar foo Ubar.
Dec
9
comment How to convert dashed string to spaces and caps?
This is what I was looking for. How can I use it in a function to operate on $1: function format { sed -e 's/-/ /g' -e 's/\b\(.\)/\u\1/g' }
Dec
9
comment How to convert dashed string to spaces and caps?
I need to pass it an arbitrary string, and convert it to spaces and capitalized. Not just "foo-bar".
Dec
9
asked How to convert dashed string to spaces and caps?
Sep
24
awarded  Autobiographer
Sep
3
awarded  Famous Question
Aug
18
awarded  Popular Question
Jul
2
awarded  Curious
Jun
17
awarded  Famous Question
May
7
awarded  Popular Question
May
3
accepted How to fix SSH on OSX?
May
2
comment How to fix SSH on OSX?
FWIW, the router is not blocking port 22. Restarting it fixed the issue.
May
2
awarded  Commentator
May
2
comment How to fix SSH on OSX?
Yes, ssh localhost works and I now see the sshd daemon. So now I need to figure out the network issue. Thank you.
May
2
awarded  Yearling
May
2
asked How to fix SSH on OSX?
Jan
1
accepted What are the special characters to print from a script to move the cursor?