Bash script question, how do I create multiple directories on one line

I am making a package for amavisd-new (yes I am aware that there is one in community but I can't say I like the way it is done).
I have an install script from which I want to create multiple directories if they do not exist.
So I want to create a directory /var/spool/amavis with subdirectories of var tmp virusmails spammassassin .
I can't seem to be able to find a way to do this on one line.

pelle.k wrote:
peets wrote:Hehe because it's less typing!
Good one!
Also, it's by far the more dynamic method.
If you want to get pedantic, it's also far less efficient in terms of execution time: each iteration of the loop forks a new process, whereas using a single mkdir command forks only once.  The "best" way is the curly-braces method demonstrated above by chimeric.

Similar Messages

  • How do I create multiple prints in one order?

    I am attempting to order multiple prints but as I order one picture the system immediately send (uploads) the order. I wish to include multiple pictures in one order.
    What is the process?

    You might want to consider starting a new discussion. Since this one is marked solved, less people are likely to look at it. You can link to this one.
    Have you tried putting them in a folder and then try to upload the folder?

  • Object Modelling Question: How do I create multiple nested table columns in one table

    Hi there,
    I have a XML doc which is as follows:
    <PERSON>
    <ADDRESSLIST>
    <ADDRESS>111, Hamilton Ave </ADDRESS>
    <ADDRESS>222, Cambell Ave </ADDRESS>
    </ADDRESSLIST>
    <PHONELIST>
    <PHONENO>4085551212 </PHONENO>
    <PHONENO>6505551212</PHONENO>
    </PHONELIST>
    </PERSON>
    I need a table that looks as follows:
    Create table person
    (addresslist address_table,
    phonelist phone_table
    I would like to create a table called person with columns addresslist and phonelist. Each defined as object type table of address and table of phones.
    Can anybody please tell me how can I do this.
    I have seen that there can only be one nested table per table. If so, how do we do this.
    Thanks so much
    Pramod

    pelle.k wrote:
    peets wrote:Hehe because it's less typing!
    Good one!
    Also, it's by far the more dynamic method.
    If you want to get pedantic, it's also far less efficient in terms of execution time: each iteration of the loop forks a new process, whereas using a single mkdir command forks only once.  The "best" way is the curly-braces method demonstrated above by chimeric.

  • Question: How to dynamically create multiple rows in a table together

    I'm sure this is obvious to a seasoned person but I'm a newbie (just working with Forms for 1 week).
    In the snapshot below I'm trying when I hit the Add button I'd like the two rows below the header in the table to replicate themselves below in the table.
    Eventually there will be many rows to replicate. The problem is that I can't find a way to group these and then reference them by the javascript in the "add button" so that they replicate together.
    any help/pointers etc. are much appreciated.
    Thx

    You can only add 1 row at a time .....so if you want to add three rows then you would have to run the command three times.
    Make sense?
    Paul

  • How do I create multiple TEBs with one submit button on one page in Captivate 7

    I've read other posts on this topic (which refer primarily to earlier versions of Captivate) and am still at a loss as to how to put multiple text entry boxes on a page with one submit button. Here's my scenario:
    I am creating test questions.
    Each test question has multiple text entry boxes (for numbers only).
    Student should be able to enter numbers into the textboxes in any order.
    Then there is one Submit button that should initiate validating all the text entries, and move to a scoring page (so I can test it). (What would be best is if this button not only did the above, but also submitted scores to the LMS.  But that is not my question at this time.)
    I'd like this question to be set up as a template so that I can duplicate it, be able to add or delete text boxes and change the values required in the text boxes.  
    Here is an image of a sample question page with multiple TEBs. The yellow boxes tell the student where they need to enter text:
    Any help or direction to help is appreciated!!

    I think the problem here is that Arlhoolie wants all of the different TEBs to behave as if they were part of a single interaction that submits only ONE result to the quiz.  Using multiple TEBs in Captivate means that you have multiple scored objects and therefore multiple results being submitted to the quiz.
    If you want a single Success or Failure result submitted to the quiz based on the results from multiple interactive objects then there really is no simple way to do it.  But you could try using the Infosemantics Interactive Master widget to combine all the TEBs as slave objects that report to the Master Widget, which then reports a single score to the quiz based on the results from the slave objects.
    You can learn more about the Master widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/interactive-master
    http://www.infosemantics.com.au/interactivemaster/help
    You can download a free trial version of the widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    One caveat you should be aware of is that this widget is not HTML5 compatible.

  • How do i create multiple triggers in one image?

    Hi there,
    I have an image which consists of multiple sections. (It's a circle with pie-pieces: see attachment)
    I want every segment of the image to be a seperate trigger: when you hover or click other segments will turn gray and a text will appear.
    At first i thought that it wouldn't be possible, but then i saw this website http://pmkwilliams.com/# (i know it's made with edge, i saw it in a presentation on youtube)
    Can anyone help me? All the help is welcome! And a link to a tutorial would be grant.
    And i want to appologise if this is asked before: i didn't know how you would call such a feature. English is not my motherlanguage...
    Thanks sooo much in advance!!!
    bart

    Hi ResDesign, thanks again for your reply.
    I just inserted a part of the code, but because i can't seem to find the way the "american map animateproject" works i find it hard to see what it is i have to do.
    1: I understand that i need to create rectangles at the place i want the trigger to be: coords="217,9, 222,9,226,9,230,9"/>'+
                 // for a rectangle shape use shape="rect"
    2: I changed every "usmap" to my own image name.
    3: But it also says '<area id="California" shape="poly" title="California region:West" Does this mean that when you hover, you'll see this text? i could delete this then?
    4: I don't know what to do with the timeline. What do i set up and what keyframes do i use?
    The idea was that when you click on one segment of the circle the others would go gray and a text will appear on the right.
    I realise that maybe this is to difficult for me: i've never done javascript, so if you think this is too much...
    Thanks in advance.
    bart

  • How do I create 2 Recovery partitions: one for Lion and one for Mountain Lion?

    Well that is basically the question:
    How do I create 2 recovery partitions: one for Lion and one for Mountain Lion?
    Reason is that I would like to keep the option to return to Lion, or even better, have a seperate partition for eacht?

    can I access my programs from the other partition, so I can save space ...
    No, as far as I know, each one is completely separate - especially if you're dealing with two different versions of OS's.
    is it possible to safely make an extra partion on a running drive (it is my main computer ...) The disk is large enough ...
    how large would this have to be
    I've personally never done it on a running drive - have read it's possible, but don't want to suggest it since I've never done it and wouldn't be sure about the steps. This is how I got to two partitions on my iMac:
    Originally, I had just one partition with Snow Leopard. I used CCC to clone that to an external drive. Booted into that drive and used DU to partition and erase the internal. I then cloned the new clone back. Also cloned the same thing to the other partition which I then upgraded to Lion. So I had two OS's - SL and Lion. I've now decided to clone my SL to an external drive for occasional use and installed ML on that partition - so now I have Lion and ML.
    There are two ways to get a "fresh" install: either download the OS again and install it on a partition of your choice or, as I've done as well, copy the installer to a safe place so you don't need to download it again. It does include whatever apps/software is included in the OS.  I've designated two smaller partitions on externals as my "fresh" installs of both Lion and ML for emergency or reinstall purposes (this is my way of dealing with not having install DVDs) - I took the time to install it there and then slowly add fresh installs of my important apps (either via download or install CD) - don't bother with the little/less used stuff, a current copy of that can be downloaded if and when I need it. I don't really update those two - that can also be done if/when I need it since that'll always change.
    So, yesterday, I decided I wanted to start fresh with ML - booted into my fresh install of Lion (on external), wiped the SL partition on my internal and installed Lion. Decided to download a fresh copy of the ML installer and installed that. Then ran Software Update. After that, repaired permissions. Then I methodically opened every third party app and checked for updates - installed those where necessary. After all that, I simply copied (drag 'n drop) my entire Documents folder (which contains all my important data,, photos, etc) over from another backup.
    This took a while, but mostly because of the long download times; the installs weren't all that bad. I should be running a really clean system now, especially since nothing was ported over except my Documents folder.

  • How can i create multiple accounts but use the same itunes?

    how can i create multiple accounts but use the same itunes?

    Hi iCloud is Making Me Go Crazy,
    You will need to create a new Apple ID for your GameCenter and iCloud services.  You can continue to use the current Apple ID you share with your Mom for access to iTunes Store purchases if you wish. 
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/HT5622
    Cheers,
    - Judy

  • How can I create multiple versions of a video within the same project?

    OK...this is a probably a very basic question but I'm not sure how to word it clearly.
    How can I create multiple versions of a video within the same project? What I mean is that I have a bout 50 minutes of video and I want to make two DVDs using different clips from this original 50 minutes of footage. It would be a real pain to have to re-import the video AGAIN for the second DVD. I suppose I could drop anything I don't want to burn to DVD back into the clips pane but that would wipe out all my transitions wouldn't it? I want to save each project in their “raw” form so I can burn additional DVDs later otherwise I would just do them one at a time and not care about one of them being destroyed.
    Wow...that was a mess. Does anyone understand what the heck I’m asking? I hope so.

    How can I create multiple versions of a video within the same project?
    You can't. You make separate projects using the same or different clips, segments, transitions, titles, etc. You can even duplicate the first project and then modify/make the desired changes in the duplicated project. Each project can then be burned as a different DVD or as different titles on the same DVD if there is enough room.

  • How do i creating multiple icloud accounts for one itunes account

    how do i creating multiple icloud accounts to access one itunes account?

    Perhaps you could explain a bit more what you want to do...
    iCloud accounts don't access an iTunes account.
    iTunes account is used to make purchases.

  • How do I create multiple live USBs of Operating systems to boot from on one flashdrive?

    How do I create multiple live USBs of Operating systems to boot from on one flashdrive?
    I am attempting to create multiple live USBs within one flashdrive so that i can boot various operating systems without having to buy multiple USb sticks. I am using a Mac OS X Snow Leopard 10.6.8 Operating System currently. I am using the Terminal provided by the OS.
    I would like to try Debian, Kali, Precise Puppy, and Sabayon- with one space left empty for whatever Linux OS I would like to try next. I have partitioned an 8GB flashdrive into the following sections:
    name of intended OS,     space allocated for it:
    1)Debian ........................1.32 GB
    2)Kali..............................2.61GB
    3)Precise Puppy..............163.7MB
    4)Sabayon.......................1.77GB
    5)TBD..............................2.14GB
    I have figured out how to change the .iso files of the operating systems into .img files with the following commands:
    hdiutil convert -format UDRW /path/to/input.iso -o /path/to/output.img
    a .img.dmg file is created, this is corrected in the next line of code *please note: I am a a very beginner at programming, and would greatly appreciate any help. Thank you!
    mv /path/to/output/file.img{.dmg,}
    This is where I started to get confused:
    I entered diskutil list to find the location of the partitions on my flashdrive, and this is the relevant section:
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     FDisk_partition_scheme                        *8.0 GB     disk1
       1:                 DOS_FAT_32 DEBIAN               1.3 GB     disk1s1
       2:                 DOS_FAT_32 KALI                    2.6 GB     disk1s2
       3:                 DOS_FAT_32 PRECISE            163.7 MB   disk1s3
       4:                 DOS_FAT_32 SABAYON           1.8 GB     disk1s5
       5:                 DOS_FAT_32 TBD                     2.1 GB     disk1s6
    This is the code I attempted to use and the subsequent result:
    charles-burtons-mac-mini:~ charlesburton$ sudo dd if=/Users/charlesburton/Desktop/debian-live-7.2-i386-gnome-desktop.img of=/dev/disk1s1 bs=1m
    dd: /dev/disk1s1: Resource busy
    *at this point I went to the Disk Utility GUi and unmounted only the DEBIAN partition, now back to the terminal*
    charles-burtons-mac-mini:~ charlesburton$ sudo dd if=/Users/charlesburton/Desktop/debian-live-7.2-i386-gnome-desktop.img of=/dev/disk1s1 bs=1m
    dd: /dev/disk1s1: end of device
    1259+0 records in
    1258+1 records out
    1320005632 bytes transferred in 1011.966891 secs (1304396 bytes/sec)
    Please may someone help explain why I had a return value of +1 in my records in and how I can make it work properly.

    I would like to know the answer to this as well.  I tried renaming the 3D version by adding 3D after it, but it still not a separate movie in iTunes.
    It's putting them in the same folder.

  • HT204053 how can i create multiple icloud accounts for my family members

    how can i create multiple icloud accounts for my family members

    Thanks...  I appreciate the reply.  Since I wrote the previous email, I actually went and changed my apple id (the main id) and the documentation I looked at said iCloud will set mail up automatically(?)...  I had it working before. 
    Also, I tried to manually set up the ID via the Mail Accounts screen(s) and I can't figure out what my server information is...  Pop or Imap?  What's the outgoing server and the incoming server?
    I typically have never had problems setting up mail accounts (in apple mail) with no problem.
    Can anyone point me in the right direction?
    Thanks in advance!

  • How can I create multiple sales orders with reference to one contract?

    Hello Gurus,
    Can you please how can I create multiple sales orders with reference to one contract?
    thanks!
    Rakesh

    hi
    Lets consider example
    In your contract for line item 1 you have entered qty 100
    You careated sales order with 70 quantity, and now you want to creat another sales order for 30
    For this first you need to check what is your item category in contract (VA42)
    Goto VOV7
    SPRO - IMG  - Sales and distribution - Sales - Sales document item - Define item categories - Go to change mode
    Make the completion rule = B Item is completed after full quantity has been referenced

  • How can i create multiple versions of a photo in ios8?

    I Often want to create different versions of the same photo....with different crops, contrast, etc and keep them.  In iPhoto, that was done with the duplicate command, but there does not seem to be the same capability in ios8.  Any ideas?

    How can I create multiple versions of a video within the same project?
    You can't. You make separate projects using the same or different clips, segments, transitions, titles, etc. You can even duplicate the first project and then modify/make the desired changes in the duplicated project. Each project can then be burned as a different DVD or as different titles on the same DVD if there is enough room.

  • How do I create multiple calendars on my iPad?

    How do I create multiple calendars on my iPad?

    I love stealing another users posts and here is one now ....
    You don't create multiple calendars on the iPad.
    The iPad is designed to be synced with a supported application on your computer for contacts and calendar events. The contact Groups I've created with the Address Book on my Mac and the different calendars I have with iCal on my Mac are available and kept synchronized with the my iPhone's Contacts and Calendar applications, and the same applies to the iPad.
    Long story short, this is done with the supported application on your computer used for syncing contacts and calendar events.
    The same principle applies to PC users. You have to sync within iTunes from a supported calendar application on your PC.

Maybe you are looking for

  • Creation of Services for MSS 1.41

    Good Night. Someone can help me with a suggestion of the cause of the isssue that i attach . [Link Documentation|http://www.box.net/files#/files/0/f/39331722] In the file i explain my issue. Any help is highly appreciated. Regards

  • IMac G5 bluetooth + airport + power supply problems - oh and the dvd drive

    Yeah, seems like a lot is going wrong with my mac lately. I bought the iMac G5(no isight) model last year around july. I had some power issues (i.e. leaving the house with it turned on to come home and find it off) For the last year though that was a

  • How to get current layer type (text, art, group layer, etc.)

    Hi, I am traversing over all layers using layerIndex. I can get current later name in following way. char* layerName = new char[100]; int32 len = 100; PIUGetInfoByIndex(layerIndex,classLayer, keyName, layerName , &len) ; I need to get layer type usin

  • Bean not found in WU_TEST_106.fmb

    Hi, I'm using Developer Suite 10g and WebUtil 10.1.2.0. When I load the testform WU_TEST_106.fmb in Form Builder 10.1.2.0.2 there is no problem (WEBUTIL_CANVAS shows without errors), so I think that my installation is correct. At runtime, however, I

  • How to create Inbound Idoc from XML file-Need help urgently

    Hi, can any one tell how to create inbound Idoc from XML file. we have xml file in application server Ex. /usr/INT/SMS/PAYTEXT.xml'  we want to generate inbound idoc from this file.we are successfully able to generate outbound XML file from outbound