Find the answer to your Linux question:
Results 1 to 6 of 6
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Complex commands


    Hi guys,

    can you please help me with an issue that i encountered?

    I have to list all files (their full paths) in /tmp/test/ and subdirectories, that contain the left bracket "[" .

    I used find $PWD -name \*[\* but it is not working becuase [ is a special character and I don't now how to escape it.

    I am using Oracle Enterprise 5.

    Thanks!!!

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,685
    This should do:
    Code:
    ... -name "*[*"
    Last edited by Irithori; 10-10-2011 at 02:20 PM.
    You must always face the curtain with a bow.

  3. #3
    It worked thank you

  4. $spacer_open
    $spacer_close
  5. #4
    Hi guys,

    another one....

    How can I set ownership to "root" group "sys" for directory "/tmp/test" and everything below?

    Thanks,

  6. #5
    That's an easy one, but this really smells like a homework questions thread which are against the rules here...

    Have a look at the man page for the chown command.

    Code:
    man chown

  7. #6
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,732
    Quote Originally Posted by caravel View Post
    homework questions thread which are against the rules here
    Hello and welcome, hexapla!

    Please check the following thread before continuing:

    http://www.linuxforums.org/forum/lin...ums-rules.html

    Thanks.
    oz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •