UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 20th, 2012, 11:26 AM
yereverluvinunc yereverluvinunc is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 10 yereverluvinunc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 7 m 27 sec
Reputation 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?

Reply With Quote
  #2  
Old September 20th, 2012, 04:21 PM
yereverluvinunc yereverluvinunc is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 10 yereverluvinunc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 7 m 27 sec
Reputation 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

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Display all files modified excluding subfolders

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap