Find name with spaces

Hello,
How could this code be modified to ignore spaces:
find / -iname "foo"
What I mean is I know this code will find files containing foo and it will ignore capitals and surrounding characters. But it will not find a file containing +fo o+ or fo.o for example. Is there any way to achieve this?
Thank you,
Rick

man find
Look for -regex
Or
find / -name "foo" -o -name "*fo[ .]o*"

Similar Messages

  • 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]

  • QT v10.0 "save for web" creates file names with spaces?

    I find it strange that the additional exported files from "save for web" (iPhone, etc) auto exports files with spaces in the file names. Not only that, but changing the file names breaks the javascript.
    I work on a server that denies permission to files with spaces in the file names. I know it's a bit archaic - but it's also a long standing tennent of "good HTML" to creates files with a hyphen or underscore instead of a space.
    Is this something that can be addressed in the next update?

    If your using cs5 or cs6 you might try Image Processor Pro which seems to use underscores
    and has a save for web option.
    Dr Browns Services 2.31
    http://www.russellbrown.com/scripts.html

  • 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

  • Document library: File name with spaces at EOF

    I noticed a strange issue with uploading files with space at end of file (example "ABC  .xlsx"). Such files are allowed to be uploaded for the first time but when the end user (with contribute permission) tries to upload the same file again
    (overwrite) then it uploads the file and goes to the next dialog box where properties for the form is collected (EditForm) and then when user tries to hit save, he gets "Sorry this site is not shared with you" error. The owners (with Full control
    permission) get the error message that the file needs to be renamed. 
    This does not happen with files having proper names. The files are automatically overwritten as expected.
    Is it a SharePoint bug or am I missing something ?

    Hi Prakash,
    When we upload a document which contains spaces at the end of the file name, then SharePoint will trim out the spaces in the Edit Item Form, so the name for this document should be “ABC.xlsx”.
    When we re-upload the document to SharePoint, because of that extra space it sees the filename(ABC  .xlsx) as different to the existing document (ABC.xlsx) so it adds it as a new document.
    And in the edit item form, the space has been trimmed out. Because there is already a document with that filename in the document library, it throws the error.
    So this issue is by design that SharePoint uploads the document first and then edit the properties of the document.
    For more details, please refer to the link below:
    https://discoverlars.wordpress.com/2012/10/27/sharepoint-doesnt-overwrite-a-document-with-the-same-name-but-creates-duplicates/
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • 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

  • File download - file name with spaces

    I use the resp.setHeader("Content-disposition", "attachment; filename="+filename) method. it works. However, when the file name contains spaces the dowloaded file's name is only the part of the string up to the space, nothing more. Is there a way to deal with it? I'm replacing spaces for '_' at the moment but that's not exactly what I want.
    Thanks.

    Is the filename put in between quotes?
    resp.setHeader("Content-disposition", "attachment; filename=\"" + filename + "\"")

  • File name with spaces

    Hi,
      I am unable to upload files with file name having blank spaces to cFolders 4.0.
    Kindly help me to resolve this issue.
    Regards,
    Shynu John

    Hi Shynu,
    Please refer the following note.
    Note 959280 - File names with special characters are uploaded incorrectly.
    Regards,
    Pavan

  • Handling property name with spaces in SQL query

    Hello,
    I have some JSON that looks like this:
        "SystemId": "112234",
        "Parameter": {
            "Total Hours": [
                    "timestamp": "2015-03-15T15:20:00Z",
                    "itemValue": "0"
                    "timestamp": "2015-03-15T15:15:00Z",
                    "itemValue": "296"
    ..and am having trouble with the space in the "Total Hours" property name.  When executing a SQL query, I have tried to reference it as ["Total Hours"], [Total Hours], and "Total Hours", but none of these works.  I
    have also reviewed the "Querying DocumentDB" and "DocumentDB SQL Query Language" documents, but am unclear on how to escape this space.  As this is valid JSON, I would expect to be able to handle it via DocumentDB SQL query, but am
    not certain what I am missing.  
    Thanks for your help.
    Please remember to mark replies as answers if they help you.

    Given that the property with the name with the space contains an array, I attempted to query using:
     SELECT * FROM c WHERE c.Parameter.c["Total Hours"][0].timestamp = "2015-03-15T15:15:00Z" and a few other permutations, but no luck.  Did I misunderstand?
    Please remember to mark replies as answers if they help you.

  • Role names with spaces (6.1 to 8.1)

    Hi All
    I'm working in an organization that has group and role names within their LDAP
    repository such that the group and role names contain spaces. Hence, for example,
    within a web.xml file lines like the following exist:
    <role-name>Some Role Name</role-name>
    This has worked without problem in Weblogic 6.1 but given some prelimanary work
    within 8.1 we are noticing that Weblogic 8.1 does not appear to like spaces within
    the <role-name> element.
    Is this just the way it is with Weblogic 8.1? Or is there a way to continue to
    use role names with embedded spaces within Weblogic 8.1?
    Thanks,
    Rob

    "Peter" <PeterB> wrote:
    >
    "Rob" <[email protected]> wrote in message
    news:3f57d329$[email protected]..
    Hi All
    I'm working in an organization that has group and role names withintheir
    LDAP
    repository such that the group and role names contain spaces. Hence,for
    example,
    within a web.xml file lines like the following exist:
    <role-name>Some Role Name</role-name>
    This has worked without problem in Weblogic 6.1 but given some prelimanarywork
    within 8.1 we are noticing that Weblogic 8.1 does not appear to likespaces within
    the <role-name> element.
    Sounds like a bug. File a support case.
    Hi,
    A workaround exists :
    1 - in web.xml, update your role-name element by replacing spaces with "_"
    2 - in weblogic.xml, add :
    <security-role-assignment>
         <role-name>Some_Role_Name</role-name>
         <principal-name>Some Role Name</principal-name>
         </security-role-assignment>
    Regards
    Christophe

  • Another finder annoyance (with spaces)

    I am using spaces with the config that if I click on a application in the dock which has an open window in another space, it does not throw me into that space, but just stays in the space where I am and activates the app. I get that behavior by deactivating the last option in the spaces preferences. I mucho like it that way because with that setup I get the following: If an application window is open on my current space, clicking once on the application icon activates that window (and brings it into the foreground when I am not seeing it), but when no window of the app is open on the space, it does not throw me away, it just activates the app and I get the chance to open a new window of that app by hand.
    This setup works perfectly for all application I use...except finder. When I have a finder window open in space 1 and I am currently on space 2 and I click on the finder icon and no finder window is present in space 2 I get thrown all the way to space 1. It annoys me quite a bit because it is an inconsistency in the user interface.
    I already searched the forum database. I found one topic where a user describes exactly the same behavior I am experiencing. No solution provided though.
    So is that a bug or a feature (which I would not understand)?
    I can reproduce that behavior on three different machines (but all running 10.6.2).
    Kind Regards

    Here I have the same issues! Latest build of 10.4. with and without the last Security Update and iChat Update (so this is not the reason). Permissions seems right. I can redo the freeze when starting Dashboard. It stayes ever on opening the widgets …
    Have also the same issue when login as Admin without running any additional sofware (where no additional Widgets are running - simply the 4 default ones) - finder Freezes with spinning beachball
    Whats wrong on these systems??
    4x2.5 GhZ G5 Quad Mac OS X (10.4.8)

  • Independent Servers?: Publishing and page names with spaces

    Hello I am hoping someone who has published their site to server independent of .mac could tell me how they managed to name their pages with spaces without publishing problems. I have read here that you have to use an underscore or something similar to name your pages....Eck....I am making a site for my mother's business and I would prefer to use page names like 'about our service' instead of 'aboutourservice'. And I have seen that some people have managed this. Can any kind souls help?
    Thanks!

    DJ.... I publish my site to FOLDER first, then upload
    it to my server using FETCH FTP. It loads fine and
    doesn't have trouble with the menu spaces and such.
    Not sure what everyone else is saying about that, but
    it's not an issue. I use .Mac for my podcasts, and
    iWeb at DreamHost for my internet site.
    Jim -- what's your url? I'm wondering if there are some hosts which automatically replace spaces in uploaded files. Normally you just can't upload them. Or maybe Fetch is doing it for you. Would be useful to know.

  • AppleScript Folder names with spaces

    Hello,
    I have been working on somethings in AppleScript and came accross one problem.
    How do I remove folders that have spaces in their name.
    The method I use is by using a terminal command as shown below.
    do shell script "rm ~/Desktop/This is the folder/"
    I would have come into an error saying
    error "rm: /Desktop/This: No such file or directory
    rm: is: No such file or directory
    rm: the: No such file or directory
    rm: folder: No such file or directory" number 1
    I have tried Googling and found this.
    do shell script "rm ~/Desktop/This\ is\ the\ folder/"
    but have came up with this syntax error.
    Expected “"” but found unknown token.
    Please help me with this issue. If there is another method, without using the do shell script command, maybe telling Finder to delete the folder?, please suggest.

    Neil gave the correct answer (though I would have used System Events to do the same thing).  But to address the problem you're having with the rm command...  In applescript the backslash character is an escape character.  It's used when you want to have literal quotes in a text string, e.g.
    set txt to "Senator McCain said \"Nerf Balls!\" in a press conference yesterday."
    Since the backslash is an escape character in applescript, you need to escape it as well if you want a literal backslash:
    do shell script "rm ~/Desktop/This\\ is\\ the\\ folder/"
    personally, I always single quotes where I can in do shell scripts because the double backslash looks weird, but...

  • Finder issue with Spaces

    I found a Finder issue when using spaces. I performed an upgrade installation on my Intel Core Duo iMac. Finder worked as expected. Then, I turned on Spaces. After a few minutes the finder hung. I tried using activity monitor several times to force quit it. Finder quit, then relaunched and hung. Then, I turned off Spaces and the Finder stopped hanging and functioned as expected. I turned Spaces back on, and the Finder is still working currently. I am not sure if this bug will reproduce itself at this point.

    Ok, got it!
    Please refer to the original post and the third post in the following thread: http://discussions.apple.com/message.jspa?messageID=10122332
    Turns out I was having the same two problems as the original poster. It also turns out the solution to his first problem, which he outlined in the third post, happened to solve both problems on my machine.
    In your Spaces prefs (Expose & Spaces in the System Preferences), make sure "When switching to an application, switch to a space with open windows for the application" is checked!
    Seems to have worked for me!
    Here's hoping this solution helps others with the same problem. =)

  • 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)

Maybe you are looking for