Profile

Cover photo
Matt Bowcock
Works at Acushnet Company
Attended University of Massachusetts
Lived in Fairhaven, ma
2,262 followers|22,754 views
AboutPosts

Stream

Matt Bowcock

Shared publicly  - 
 
Figured I'd post this to public. Maybe get some help.
 
Hi All -
I'm having an issue with brace expansion in bash on Mac osx.

This works correctly -
> echo {1..4}
1 2 3 4

If I do the same with strings I get two values -
> echo {one, two}

Gives me
"{one" and "two}"

So if I were to try and create two directories using -
> mkdir ./{testOne, testTwo}

I'll get these two directories -
./{testOne
./testTwo}

Any ideas? Thanks. 
1
Add a comment...

Matt Bowcock

Shared publicly  - 
 
 
Sigh.
1
Mike Pepin's profile photo
 
Only the most prestigious schools offer CS courses in these elite fields!
Add a comment...

Matt Bowcock

Shared publicly  - 
 
New Hampshire
1
Add a comment...

Matt Bowcock

Shared publicly  - 
1
Add a comment...

Matt Bowcock

Shared publicly  - 
Rich Hickey&#39s second, "philosophical" talk at the first Clojure Conj, in Durham, North Carolina on October 23rd, 2010. Many thanks to Matt Courtney, who graciously provided the equipm...
1
Add a comment...
Have him in circles
2,262 people
Michael Evans's profile photo
Florian Laurent's profile photo
Adam Gregory's profile photo
Lars van de Kerkhof's profile photo
vanessa anjos's profile photo
Brian Ledbetter's profile photo
Michael Dingler's profile photo
AZEEM SAJJAD DOGAR's profile photo
Thorsten Thiel's profile photo

Matt Bowcock

Advanced Topics  - 
 
Hi All -
I'm having an issue with brace expansion in bash on Mac osx.

This works correctly -
> echo {1..4}
1 2 3 4

If I do the same with strings I get two values -
> echo {one, two}

Gives me
"{one" and "two}"

So if I were to try and create two directories using -
> mkdir ./{testOne, testTwo}

I'll get these two directories -
./{testOne
./testTwo}

Any ideas? Thanks. 
1
1
Frans OORT's profile photoAlain Narko's profile photoBill Gates's profile photoMatt Bowcock's profile photo
6 comments
 
I could be off base but are you trying to work it like a sequence/int or a string/array?

As with debian/Ubuntu have sh symlinked to dash, are you certain your Mac is using bash?
Add a comment...

Matt Bowcock

Shared publicly  - 
1
Add a comment...

Matt Bowcock

Shared publicly  - 
1
Add a comment...

Matt Bowcock

Shared publicly  - 
 
Love this -
http://vooza.com/
Vooza is a tech startup building a mobile web app. We use Radimparency to bring you behind the scenes at our company.
1
Add a comment...

Matt Bowcock

Shared publicly  - 
 
Linus comments on Linux and nVidia Optimus - 
Aalto Talk with Linus Torvalds [Full-length]

Edit: Either I'm doing it wrong or g+ doesn't allow embedding youtube videos with a time offset. If you're interested in his comments they are at 48 minutes 10 seconds or click the link above.
1
Add a comment...
People
Have him in circles
2,262 people
Michael Evans's profile photo
Florian Laurent's profile photo
Adam Gregory's profile photo
Lars van de Kerkhof's profile photo
vanessa anjos's profile photo
Brian Ledbetter's profile photo
Michael Dingler's profile photo
AZEEM SAJJAD DOGAR's profile photo
Thorsten Thiel's profile photo
Work
Occupation
Software Developer
Employment
  • Acushnet Company
    Software Developer, 2004 - present
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Previously
Fairhaven, ma - New Bedford, ma - Honolulu, hi
Links
Other profiles
Story
Introduction
Software developer. I usually post about code, programming languages, math.

Work with python/c#, play with scheme, getting into clojure.

Education
  • University of Massachusetts
    Computer Engineering, 1999 - 2003
Basic Information
Gender
Male
Looking for
Friends, Networking
Relationship
Married