Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8482243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:46:29+00:00 2026-06-10T19:46:29+00:00

I think that the format of this command changed since I’ve last used it,

  • 0

I think that the format of this command changed since I’ve last used it, and now I’m not understanding what it expects of me.

I’m getting an error: find: unknown predicate '-name=*.xml'

The way it seem to be trying to invoke find is like this:

find . \( -name="*.xml" \) -ls

I don’t understand this syntax 🙁 Is it trying to create a nested shell? Why if so? Is it trying to create a list of arguments? Why if so?

I might just go and edit this function to remove the parenthesis, but why would anyone put them there? I must be missing something.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:46:31+00:00Added an answer on June 10, 2026 at 7:46 pm

    The parenthesis group the search terms you put together into a logical grouping so they wouldn’t affect anything else afterward. I suspect they’re put there to fully encapsulate anything you might put in there so that the -ls (or any other option it may add due to other variable settings, etc) always executes. Parenthesis are the highest order of parenthesis. It is not trying to create a nested shell; that’s why the \s are there: it’s passing them to find itself.

    But your real issue is that find needs the -name with a space after it, not with an = sign. (ie, the argument to -name should be a separate argument). It doesn’t work like many of the double-dash arguments that you expect from other tools (in particular, the ones written using the GNU getopt_long parsing implementation.

    So, try -name *.xml instead.

    And for an additional piece of information, here’s the find man page about ()s:

       ( expr )
              Force  precedence.   Since parentheses are special to the shell,
              you will normally need to quote them.  Many of the  examples  in
              this  manual  page  use  backslashes for this purpose: `\(...\)'
              instead of `(...)'.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think that's should work. I want to get output of this command grep
I think that I'm probably not writing lazily instantiated methods/attributes in the most ruby
I think that this problem can be sorted using reflection (a technology which I'm
I think that some newer languages like JS can do this natively, but I
I think that is not easy to understand what I need reading title, so
I think that I've been used to a fairly liberal policy regarding the PHP
I am getting this error with GT.M: %GTM-E-GDINVALID, Unrecognized Global Directory file format: /home/blah/gt.m/example/mumps.gld,
Side note: I really could not think of a good title for this. Ok,
I think that handlers in android are tools to get different objects that are
just think that when I opened my file then when I want to write

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.