• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OT] one more UNIX question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] one more UNIX question


  • Subject: Re: [OT] one more UNIX question
  • From: Bill Briggs <email@hidden>
  • Date: Wed, 13 Jun 2007 20:41:15 -0300

Down to the last stage of the script.

I want to do something like this

mkdir -pv top/{list,of,sub,folders}/{sub,sub,folders}

and when it's written out explicitly the tree is dutifully constructed.

But if I make a variable whose value is the list (either with or without the braces) and drop that in, like so,

mkdir -pv top/{variable}/{sub,sub,folders}

or

mkdir -pv top/variable/{sub,sub,folders}

the variable evaluates, but the shell fails to construct the tree using the list held in the variable. Any way to persuade that to work?

- web
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Email Change because of SPAM... (Sorry for the RESEND) (From: Don Wieland <email@hidden>)
 >Re: [OT] UNIX heads; can I do this? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: [OT] UNIX heads; can I do this?
  • Next by Date: Re: [OT] UNIX heads; can I do this?
  • Previous by thread: Re: [OT] UNIX heads; can I do this?
  • Next by thread: Re: [OT] one more UNIX question
  • Index(es):
    • Date
    • Thread