Re: find and remove ?

2011-05-15 Thread Jack L. Stone
At 08:05 PM 5/15/2011 +0200, Rolf Nielsen wrote:
>2011-05-15 19:50, Rolf Nielsen skrev:
>> 2011-05-15 19:41, Jack L. Stone skrev:
>>> At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote:
> The comamnd:
> #find /path/to/start/deleting -type d -name _vti_\*
> worked fine to give the listing of what to delete, but when just
> adding the
> "-delete" at the end didn't delete, just ran the listing again.

 I forgot that adding the -type d won't let it delete non-empty
 directories. Try running it like:
 find /path/to/start/deleting -name _vti_\* -delete

>
> (^_^)


>>>
>>> Nope. Thate didn't delete either.
>>>
>>> Jack
>>>
>>> (^_^)
>>> Happy trails,
>>> Jack L. Stone
>>>
>>> System Admin
>>> Sage-american
>>> ___
>>> freebsd-questions@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to
>>> "freebsd-questions-unsubscr...@freebsd.org"
>>>
>>
>>
>> find /path/to/start/deleting -name _vti_\* -exec rm -Rd {} \;
>
>Pardon my answering my own post, but after reading the find manpage, I 
>think perhaps
>
>find -d /path/to/start/deleting -type d -name _vti_\* -exec rm -Rd {} \;
>
>would be better. The -d option makes find visit the contents of a 
>directory before the directory itself. The one without the -d option
>deletes the topmost directory it finds and then tries to traverse 
>downwards, which of course causes a warning. It still works though.
>

Thanks for the follow-up. I'll try it too.

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find and remove ?

2011-05-15 Thread Rolf Nielsen

2011-05-15 19:50, Rolf Nielsen skrev:

2011-05-15 19:41, Jack L. Stone skrev:

At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote:

The comamnd:
#find /path/to/start/deleting -type d -name _vti_\*
worked fine to give the listing of what to delete, but when just
adding the
"-delete" at the end didn't delete, just ran the listing again.


I forgot that adding the -type d won't let it delete non-empty
directories. Try running it like:
find /path/to/start/deleting -name _vti_\* -delete



(^_^)





Nope. Thate didn't delete either.

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscr...@freebsd.org"




find /path/to/start/deleting -name _vti_\* -exec rm -Rd {} \;


Pardon my answering my own post, but after reading the find manpage, I 
think perhaps


find -d /path/to/start/deleting -type d -name _vti_\* -exec rm -Rd {} \;

would be better. The -d option makes find visit the contents of a 
directory before the directory itself. The one without the -d option
deletes the topmost directory it finds and then tries to traverse 
downwards, which of course causes a warning. It still works though.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find and remove ?

2011-05-15 Thread Jack L. Stone
At 07:50 PM 5/15/2011 +0200, Rolf Nielsen wrote:
>2011-05-15 19:41, Jack L. Stone skrev:
>> At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote:
 The comamnd:
 #find /path/to/start/deleting -type d -name _vti_\*
 worked fine to give the listing of what to delete, but when just
adding the
 "-delete" at the end didn't delete, just ran the listing again.
>>>
>>> I forgot that adding the -type d won't let it delete non-empty
>>> directories. Try running it like:
>>> find /path/to/start/deleting -name _vti_\* -delete
>>>

 (^_^)
>>>
>>>
>>
>> Nope. Thate didn't delete either.
>>
>> Jack
>
>find /path/to/start/deleting -name _vti_\* -exec rm -Rd {} \;
>___

That worked! Thanks!

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find and remove ?

2011-05-15 Thread Rolf Nielsen

2011-05-15 19:41, Jack L. Stone skrev:

At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote:

The comamnd:
#find /path/to/start/deleting -type d -name _vti_\*
worked fine to give the listing of what to delete, but when just adding the
"-delete" at the end didn't delete, just ran the listing again.


I forgot that adding the -type d won't let it delete non-empty
directories. Try running it like:
find /path/to/start/deleting -name _vti_\* -delete



(^_^)





Nope. Thate didn't delete either.

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"




find /path/to/start/deleting -name _vti_\* -exec rm -Rd {} \;
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find and remove ?

2011-05-15 Thread Jack L. Stone
At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote:
>> The comamnd:
>> #find /path/to/start/deleting -type d -name _vti_\*
>> worked fine to give the listing of what to delete, but when just adding the
>> "-delete" at the end didn't delete, just ran the listing again.
>
>I forgot that adding the -type d won't let it delete non-empty
>directories. Try running it like:
>find /path/to/start/deleting -name _vti_\* -delete
>
>>
>> (^_^)
>
>

Nope. Thate didn't delete either.

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find and remove ?

2011-05-15 Thread Eitan Adler
> The comamnd:
> #find /path/to/start/deleting -type d -name _vti_\*
> worked fine to give the listing of what to delete, but when just adding the
> "-delete" at the end didn't delete, just ran the listing again.

I forgot that adding the -type d won't let it delete non-empty
directories. Try running it like:
find /path/to/start/deleting -name _vti_\* -delete

>
> (^_^)



-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find and remove ?

2011-05-15 Thread Jack L. Stone
At 11:32 AM 5/15/2011 -0400, Eitan Adler wrote:
>> Thanks, Eitan, but it didn't delete. What did I do wrong?
>
>I would need to see what command you typed :-)
>Go to the top directory you start deleting from and type
>find . -name _vti_\*
>
>This will print out what it thinks should be deleted. If you don't see
>the directories you expect here then please be more specific about
>what should be deleted.
>If you do see the directories you expect and running the find command
>with "-delete" doesn't work then we could try and debug from that
>point.
>
>
>-- 
>Eitan Adler
>

The comamnd:
#find /path/to/start/deleting -type d -name _vti_\*
worked fine to give the listing of what to delete, but when just adding the
"-delete" at the end didn't delete, just ran the listing again.

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find and remove ?

2011-05-15 Thread Eitan Adler
> Thanks, Eitan, but it didn't delete. What did I do wrong?

I would need to see what command you typed :-)
Go to the top directory you start deleting from and type
find . -name _vti_\*

This will print out what it thinks should be deleted. If you don't see
the directories you expect here then please be more specific about
what should be deleted.
If you do see the directories you expect and running the find command
with "-delete" doesn't work then we could try and debug from that
point.


-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find and remove ?

2011-05-15 Thread Jack L. Stone
At 06:59 PM 5/14/2011 -0400, Eitan Adler wrote:
>> I'm finally getting around to removing any remnants of frontpage. There are
>> 1000s of _vti_* directories across several domains and need to clean those
>> out. What's the best way to run a short script or command set to find and
>> delete those?
>
>man 1 find
>
>find /path/to/start/deleting -type d -name _vti_\*  -delete
>run the command without -delete  to see what will be removed.
>
>
>-- 
>Eitan Adler
>

Thanks, Eitan, but it didn't delete. What did I do wrong?

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: find and remove ?

2011-05-14 Thread Eitan Adler
> I'm finally getting around to removing any remnants of frontpage. There are
> 1000s of _vti_* directories across several domains and need to clean those
> out. What's the best way to run a short script or command set to find and
> delete those?

man 1 find

find /path/to/start/deleting -type d -name _vti_\*  -delete
run the command without -delete  to see what will be removed.


-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


find and remove ?

2011-05-14 Thread Jack L. Stone
Folks:

Am running FBSD-7.x

I'm finally getting around to removing any remnants of frontpage. There are
1000s of _vti_* directories across several domains and need to clean those
out. What's the best way to run a short script or command set to find and
delete those?

Appreciate any suggestions.

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Recommendations on how to find and remove sparse files?

2007-04-26 Thread Steve

I'm trying to find a method to recursively find and remove sparse
files from a directory tree.  It appears the 'find' utility won't work
in this case.  I'm running 6.2-R.  Thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"