How to set path names with spaces ?

I want to set a variable to a path name that contains spaces that will work with cd. If I set the variable with
set p1="My MPW Folder"
then using echo $p1 yeilds
My MPW Folder
however is I do cd $p1 I get
cd: Too many arguments.
If I manualy type cd "My MPW Folder" it works. I just don't know which escape character I can use to allow the spaces to be accepted as part of the path name.
Thanks,
Power PC G4   Mac OS X (10.3.9)   1.25 GB RAM

You already know that you can use quotes around a string to keep whitespace as part of the string, so: cd "$p1"
Dual 1.25 GHz G4 (among others)   Mac OS X (10.3.9)   Fink (obviously)

Similar Messages

  • How to set event name with a apple script

    I use a script to import my photos in iphoto. It's a action folder script.
    This script automatically create albums with the folder's names.
    With the latest version of iphoto and ranking per event, I can not initialize the name events with the names of albums.

    The device has to be set up with the same Wi-Fi network that the iOS device is connected to. The printer cannot be physically connected to the computer. Then select something to print in the iOS device and it will look for a printer and should select yours. See this support document for more help. http://www.apple.com/support/iphone/assistant/airprint/

  • How to delete the file with space in name

    Hi
    I want to delete the file "test ex.txt" file.
    i run the following command in command prompt.i can delete the file successfully.
    /bin/rm -f /mnt/"test ex.txt"
    I want to run the command from java.So i am using the following code
    String cmd = "/bin/rm -f /mnt/\"test ex.txt\"";
         Runtime rt = Runtime.getRuntime();
    process = rt.exec(cmd);
    The file was not deleted.
    How to delete the file with space in name?
    Help me

    Use the form of exec that takes an array of command + args.
    arr[0] = "/bin/rm"
    arr[1] = "-f"
    arr[2] = "/home/me/some directory with spaces";Or use ProcessBuilder, which is the preferred replacement for Runtime.exec, and which Runtime.exec calls.

  • Can someone tell me how to set my name so when I send a text it shows up instead of my phone number

    Can someone tell me how to set my name so when I send a text it shows up instead of my phone number

    You can't do that. Only the sending number is transmitted by the carrier with an SMS message. If the recipient has you in their address book, with most smart phones and some others, the name will display, but that's a function of the phone on the receiving end.

  • How to set dynamic name of the mail attachment according to source file ?

    Hi,gurus:
    Our scenario is like below:
    Sending files from an FTP server to another FTP server without using the integraiton repositary,and the file name is not changed .Now, we want to also send the file to some with by mail adapter.The scenario  now works by using two business services in receiver determination.But the name of the attachment is "untitled.xml".We know how to set the file name staticly,but how to set the name dynamicly according to the source file name ?
    I have checked miachel's blog "XI: Dynamic name in the mail attachment - pseudo "variable substitution"(/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution),but how can I get the source file name?
    And another question:Must we restart the adapter or j2ee engine to make the user defined module work?

    Hi,
    >>>but how can I get the source file name?
    form dynamicconfiguration (ASMA)
    >>>And another question:Must we restart the adapter or j2ee engine to make the user defined module work?
    no need for a restart
    Regards,
    Michal Krawczyk

  • How to set this filters with 'or' relationship

    Hi Pros,
          I have a query as follows, rows and columns are all in structures.
                                                       regular_employees
                 active_employees
                 lay_off_employees
         I want to set up filter as ' employ_status = 0 or employ_subgroup =2' for this query, please tell me how to set this filters with 'or' relationship.

    Hi Yifei,
    Create a formula and enter this (let's name this FORMULA_KF):
    ((EMPLOY_STATUS = 0) OR (EMPLOY_SUBGROUP = 2)) * enter value IF_TRUE + enter value IF_FALSE
    Then create the condition to HIDE the rows having those values to be filtered (if this is your purpose)..
    Like,
    FORMULA_KF <> 1
    Is this what you want mate?
    Regards,
    Loed

  • How to set up SAPconnect with email server

    Hi,
    Does any one know <b>how to set up SAPconnect with email server</b>
    We are using workflow and when it fails it we are sending the notification mail to the user on his company mail id, i.e. [email protected]
    This is working in the current production system. We are doing the new development which will replace the current production system. The existing Basis team does not know how it was setup in production system and how to set it up in the new system.
    When we send any mail notification from workflow we can see the mail in SCOT transaction but it is not received at the specified mail address.
    Can any one provide the configuration steps or any document for this.
    Thanks in advance..
    Pratik

    Hi Pratik,
    Check the following link:-
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    http://help.sap.com/saphelp_nw04/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    these link will help u to config SMTP.
    And one more thing u have to do..
    Go to SE11 n open Table sxnodes in change mode.
    And change F_ESMTP field to false i.e. BLANK for the Field NODE = SMTP.
    Hope this will work For U.
    Regards
    Sachin Dhingra

  • SQL Query not working for column names with spaces

    Hi People..
    We have a strange situation wherein, the column name in the database table has a space inbetween like "Constant Name". While we write a JDBC statement code with the select query we get an exception for invalid syntax. It will help us in a great way if you have anything to inform us on this..
    Thanks
    Prabz

    Using case sensitive names and names with spaces in it is not a good practice.
    However, I believe the SQL standard accounts for this with quoted identifiers. I believe the syntax is
    . select "My Field1", "My Field2"
    . from "My Table'
    Have also seen the following although it might be MS Access specific.
    . select [My Field1], [My Field2]
    . from [My Table]

  • How to set group name as default value in People Picker in Infopath 2010

    How to set group name (shareoint Groupname)  as default value in People Picker in Infopath 2010

    Under the Developer tab in Infopath you can manage Loading Events, unfortunetly i dont have Visual Studio on this PC so i cant laborate, but i believe it's rather simple to figure out.
    Edit: Found a easier way, through Data > Default Values.

  • HT3546 So i recently bought an Apple AirPort Extreme BaseStation (the mushroom shaped one) and was wondering if someone could tell me where and how to find a power cord and how to set it up with my Macintosh (2011 edition with 1.7.5) Thankyou! :)

    So i recently bought an Apple AirPort Extreme BaseStation (the mushroom shaped one) and was wondering if someone could tell me where and how to find a power cord and how to set it up with my Macintosh (2011 edition with 1.7.5) Thankyou!

    Welcome!
    Last question first, as we need to know what operating system that the Mac is using.
    If you are not sure, click the Apple icon in the upper left corner of the screen, then click About This Mac, and post back with the OS X Version number that you see there.
    Two possible solutions on the power cord
    ORIGINAL OEM APPLE AIRPORT EXTREME BASE STATION POWER SUPPLY AC ADAPTER A1202 if you want a white power supply and white power cord to match up with the Apple device
    AC adapter for Apple AirPort A1034 Extreme B... if you don't care what color the supply and cord might be
    If you don't already have a Setup Guide.....look here:
    AirPort Extreme Base Station Setup Guide v4.2 (Manual)

  • How to find index name with primarykey and column on a table?

    Hi,
    how to find index name with primarykey and column on a table?
    please help me.
    Thankyou.

      1  select ac.table_name, ac.index_name, aic.column_name
      2  from user_constraints ac, user_ind_columns aic
      3  where ac.constraint_type = 'P'
      4   and  ac.index_name = aic.index_name
      5* order by 1,2,3
    SQL> /
    TABLE_NAME                 INDEX_NAME                COLUMN_NAME
    ACTION_TABLE                 SYS_C0011033                NESTED_TABLE_ID
    ACTION_TABLE                 SYS_C0011033                SYS_NC_ARRAY_INDEX$
    CATEGORIES_TAB                 SYS_C0011038                CATEGORY_ID
    CUSTOMERS                 CUSTOMERS_PK                CUSTOMER_ID
    INVENTORIES                 INVENTORY_IX                PRODUCT_ID
    INVENTORIES                 INVENTORY_IX                WAREHOUSE_ID
    LINEITEM_TABLE                 SYS_C0011034                NESTED_TABLE_ID
    LINEITEM_TABLE                 SYS_C0011034                SYS_NC_ARRAY_INDEX$
    ORDERS                      ORDER_PK                 ORDER_ID
    ORDER_ITEMS                 ORDER_ITEMS_PK                LINE_ITEM_ID
    ORDER_ITEMS                 ORDER_ITEMS_PK                ORDER_ID
    PRODUCT_DESCRIPTIONS            PRD_DESC_PK                LANGUAGE_ID
    PRODUCT_DESCRIPTIONS            PRD_DESC_PK                PRODUCT_ID
    PRODUCT_INFORMATION            PRODUCT_INFORMATION_PK           PRODUCT_ID
    PROMOTIONS                 PROMO_ID_PK                PROMO_ID
    WAREHOUSES                 WAREHOUSES_PK                WAREHOUSE_ID
    16 rows selected.

  • How to set task description with paragraphs at runtime

    Hi Experts, How to set task description with paragraphs at runtime. Now, i can set single content in task description.however, not sure, how to set content which have paragraphs.

    Hi,
    You can use HTML tags in the Task descritption.
    Open the task not the workflow and there you can provide
    <p> content/containers </>
    You can use even <u>- Underlined text.
    <h> for bold text
    Thanks,
    Sarayoodharan.K

  • Bug in the copy cluster roles wizard - CSV reparse points cannot have names with spaces

    Hi All,
    I have identified a bug in the copy cluster roles wizard in 2012 R2, which is preventing me from migrating my clusters from 2008 R2 & 2012 to 2012 R2.
    The bug surfaces when you attempt to copy a VM role from a 2008 R2 or 2012 cluster that has a CSV reparse point name that contains spaces as follows:
    The role appears to copy across fine, but once you've migrated the CSV and brought it online followed by starting the VM, the VM configuration resource promptly fails along with the VM.
    The issue can be spotted inside the copy cluster roles wizard, where it presents itself by removing all text after the first space in the name to read "C:\ClusterStorage\CSV" rather than "C:\ClusterStorage\CSV
    Test Disk 3" as follows:
    The bug only appears for VMs on CSVs with a reparse point name containing spaces - all other scenarios succeed.
    After searching through the registry on the new cluster, you can clearly see that the VM role hasn't been correctly copied.
    It shows a value called SharedVolumeMappings with the data C:\ClusterStorage\CSV|<guid>|<integer>
    Whereas it should show the data C:\ClusterStorage\CSV Test Disk 3|<guid>|<integer>
    If you modify the data in the SharedVolumeMappings value in both
    0.Cluster\Resources\<VM guid> and Cluster\Resources\<VM guid> keys, the VM will start and work correctly.
    The problem for me is that I have many VMs on many different CSVs all with spaces in the names of the reparse point! Its not feasible for me to go through the registry for every copied VM on every node of the new cluster, as this would take a very long time
    and would be prone to errors that could cause further problems.
    Can anyone provide any help on this? A hotfix for the issue would be great, if anyone from Microsoft is reading :-)
    My deadline to get the VMs migrated to the new cluster is the 21st February, so I would really like to have a solution to the problem before then if at all possible.
    Many thanks in advance,
    Tom

    Hi Subhasish,
    Thanks for the reply, glad that its something that is reproducible!
    Do you have any idea of timescale? Or is it likely that I will have to modify the registry as above to get this working?
    If I am going to have to modify the registry, please can you let me know if the resolution I have tested above is safe and viable? Or are there other settings that I will need to change to make the cluster fully aware of the proper path to the CSVs for its
    VMs?
    Also, is there a known procedure for renaming the reparse point whilst VMs are running on it? This would allow me to negate the issue before copying the roles to the new cluster :-)
    Thanks again,
    Tom

  • Field names with spaces in target file using fcc

    Hello Friends,
    My target structure fields:
    MT_Target
    ItemNo, ItemName, ItemQuantity, AmountValue, TotalAmount
    My requirement here is - In the target file - these fields should be generated with space. Shown as below:
    Item No, Item Name, Item Quantity, Amount Value, Total Amount
    How can i achieve this.
    Thanx
    S.

    if i understood u correctly u want to have a header line in ut target file same as that ur field names but with a space in between??
    if yes  the use :
    NameA.addHeaderLine=3
    NameA.headerLine =Item No, Item Name, Item Quantity, Amount Value, Total Amount
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

  • How to set the name for an 'unknown' file extension?

    Specifics:
    I have various file extensions that are recognized by my mac. I would like to know how to create a list of applications that can open it so I do not get a 'There is no Default Application to open this file' error. I would also like to be able to give these file extensions names recognized by the mac.
    Just like .txt is a "Textedit Document" and .html is a "HTML Document," I'd like to be able to change the name and assosication of a file and give it its own .icns if possible.
    As for the default applications, I know how to set a default application. However, if a mac does not recognize a file extension, adding a new default application to run the file wil actually erase the old one, which is a big pain, especially when your file can be opened with ANY text editor.
    I understand that this may involve hacking into the operating system's databases, but if anyone can help, it would be greatly appreciated.

    Hi Timo,
    My jdev version is 10.1.3.3.0, this is for R12. By PR i mean to say process request and PFR process form request in the controller.
    In the Process request of the controller, i am finding the checkbox bean and assigning the firepartialaction for it.
    Later in the process form request for the fired event, i am trying to handle the rendered property of the messagetextinput. Is this a right approach?
    my code below
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OAApplicationModule oaapplicationmodule = oapagecontext.getApplicationModule(oawebbean);
    OAMessageCheckBoxBean oamessagecheckboxbean = (OAMessageCheckBoxBean)oawebbean.findChildRecursive("X_FLAG");
    if(oamessagecheckboxbean != null)
    oapagecontext.writeDiagnostics(this, "Message check box Bean found:", 1);
    FirePartialAction firepartialaction = new FirePartialAction("change");
    oamessagecheckboxbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, firepartialaction);
    oamessagecheckboxbean.setFireActionForSubmit("change", null, null, true);
    oapagecontext.writeDiagnostics(this, "setting fire event", 1);
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processFormRequest(oapagecontext, oawebbean);
    oapagecontext.writeDiagnostics(this, "Inside Process Form Request", 1);
    if("change".equals(oapagecontext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    OAMessageTextInputBean bean = (OAMessageTextInputBean)oawebbean.findChildRecursive("X_NUMBER");
    if(bean!=null){
    bean.setRendered(Boolean.TRUE);}
    Thanks,
    Malar

Maybe you are looking for

  • Internal Error while Generating the History

    Hi All, In BI7, going through Bex Analyzer when i log in i get this message " Internal error when generating the History. Use a different view". The rest of the options i.e.roles, favorites, Infoarea are all okay but clicking the history tab pops up

  • No cover art when importing CD to music library...

    I travel alot and have a vast CD colllection. That's why I bought my iPod. It's a convenient way to take my music with me on planes, trains, and where ever. While I am very happy with that decision, one of my disappointments that when iTunes download

  • Difference between class and component

    Hi, Can any help me 1) what are the differences betw a java class and java component. 2) what are the differences betw a java script and java. 3) Is there any difference betw a java and server side java 4)what is class path.

  • Pdf and preview printing too big

    This problem just began: When I click to print a pdf in either Adobe Reader or Preview, it prints off the page, way too big. The image is fine in the preview window. It happens identically on two printers. Gmail and google and Word docs print fine. I

  • HT1766 Can an iCloud backup not belong to you but appear on the list of backups you can choose to restore from?

    Recently I removed my SIM from my 4S and after some time I realized that the Viber messages along with some other content was gone. Someone told me that this was a security mechanism. I tried to restore the missing content by completely resetting my