Results 1 to 4 of 4

Thread: find files or folders excluding certain directories

  1. #1
    Join Date
    May 2007
    Beans
    810

    find files or folders excluding certain directories

    is is possible to search for directories or files but exclude certain directories? I am looking for rsync config files on my rsync server but i also have a lot of other directories that are named rsync that store the actual backups. This is using the find command.

  2. #2
    Join Date
    May 2008
    Location
    Cowtown
    Beans
    573
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: find files or folders excluding certain directories

    append -prune to the command

    http://www.liamdelahunty.com/tips/li...irectories.php

    and
    Code:
    man find

  3. #3
    Join Date
    Jul 2007
    Location
    Melbourne, Australia
    Beans
    3,475
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: find files or folders excluding certain directories

    I suspect you are looking for the grep command. Look at this for help. http://www.scit.wlv.ac.uk/cgi-bin/mansec?1+grep
    Windows is the best virus detector on the market!
    Ubuntu attracts Human Beings - Windows attracts viruses and worms

  4. #4
    Join Date
    May 2007
    Beans
    810

    Re: find files or folders excluding certain directories

    Thank you, this really helps. I figured out what the issue is.

Bookmarks

Posting Permissions

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