Re: [OT] one more UNIX question
Re: [OT] one more UNIX question
- Subject: Re: [OT] one more UNIX question
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 13 Jun 2007 20:54:13 -0400
On 6/13/07, Mark J. Reed <email@hidden> wrote:
Another option would be to use a loop. Of course, the downside here
is that you wind up executing mkdir multiple times instead of just
once with a huge argument list.
... unless you just build the argument list in the loop and then call
mkdir once at the end, of course:
tops=(list of sub folders)
subs=(sub sub folders)
all=()
for top in "${tops[@]}"; do
for sub in "${subs[@]}"; do
all=("${all[@]}" "$top/$sub")
done
done
mkdir -pv "${all[@]}"
--
Mark J. Reed <email@hidden>
_______________________________________________
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