#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    Display all files modified excluding subfolders


    I am trying to display all files modified excluding subfolder specified.
    It gives me output but won't exclude the folder listed.

    Tried various things to no avail.

    find "public_html" \( -wholename "/public_html/components/libraries/cmslib/cache" -prune \) -o -mtime 0

    I am a VMS man, the correct exclusion simply eludes me and I've tried it so many different ways.

    Cron <lighttst@host> find "public_html" \( -wholename "/public_html/components/libraries/cmslib/cache" -prune \) -o -mtime 0

    public_html/error_log
    public_html/cache
    public_html/cache/ab055b31631ac3c6481d767e5b32dc63e1137048.spc
    public_html/cache/curs_eur
    public_html/cache/curs_eur/curs_20-09-2012
    public_html/cache/35361e26cdf3a540f86328691357fb274455eb25.spc
    public_html/cache/2c4d634ace2a5b3651dda9f1b225410f4624887f.spc
    public_html/components
    public_html/components/libraries/cmslib/cache
    public_html/components/libraries/cmslib/cache/cache__b62f8a345b87f789c4a5ab289594d276
    public_html/components/libraries/cmslib/cache/cache_bd8e300116b86af4dfb4e0dc0c88b20f
    public_html/components/libraries/cmslib/cache/cache_c3457c7a0028f4a89790e3df679ac5b6
    public_html/components/libraries/cmslib/cache/cache__8ec27e4d552f0412f57ed46e756ee1ca
    .
    .
    .

    If it were VMS I would simply do $ dir/modified/since=[date]/exclude=[folder...]

    Can anyone assist?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    10
    Rep Power
    0

    simple typo


    I fixed it, it was a simple typo, an extra backslash not wanted.

    In the end I used:


    find "public_html" -path 'public_html/components/libraries/cmslib/cache' -prune -o -path 'public_html/components/com_pagecache/data/pages' -prune -o -path 'public_html/cache' -prune -o -mtime 0

IMN logo majestic logo threadwatch logo seochat tools logo