Find the answer to your Linux question:
Results 1 to 6 of 6
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    3

    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,356
    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
    Just Joined!
    Join Date
    Oct 2011
    Posts
    3
    It worked thank you

  4. #4
    Just Joined!
    Join Date
    Oct 2011
    Posts
    3
    Hi guys,

    another one....

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

    Thanks,

  5. #5
    Guest
    Join Date
    Feb 2005
    Posts
    312
    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

  6. #6
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    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
  •