find

  1. I

    How to limit search result of directories/files to limited top-level directories only?

    I did a find / -name 'XXX' and the output is insane. It lists every file and the list never ends (I had to Ctrl-C to stop it). How can I view the results meaningfully? For example, I'd like to limit to the result to appear only for, say the top-level (or top 2nd or 3rd level) directories only...
  2. T

    Solved What is running find -sx / /usr/home /var/mail /usr/src /projects /dev/null daily?

    Every morning, I hear my hard-drive thrashing and do a ps aux to find this: find -sx / /usr/home /var/mail /usr/src /projects /dev/null I grepped /etc/cron*, but didn't find anything in there referencing find. I also looked at all the crontabs. I'm running ZFS on my root FS. I have locate...
  3. MMacD

    Solved A complicated "find"

    If you need to find a substring (e.g. a function header) in every file of a certain type no matter where in a nest of subtrees it might be, AND you want the date and size of the file, this will do it for you: find root-of-search -name...
  4. G

    Searching issue

    Hi everybody! First up, sorry for my bad English. I don't found a simply way to collect the Apache errorlog's old directories... I have FreeBSD 9.1 with Bash. The Apache error logs are within each domain directory (for the users): /domains/[domain]/errorlog/[YEAR]/[month]/[day] I need a...
Top