GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   serverguys: how to delete all files with a cirtain size? (https://gfy.com/showthread.php?t=150775)

Bucho 07-08-2003 08:36 AM

serverguys: how to delete all files with a cirtain size?
 
hey!
Ive got a bunch of files on my server that id like to delete, they are all in a recursive set of sub's

The only thing that they have in commen is the filesize (0kb) - anyone here knows if its possible to delete (or rename) all files (recursive) with that filesize?

if so, whats the command?

thanks a lot!

Kapitan Ivanov 07-08-2003 08:37 AM

Yes.
http://www.programmersheaven.com/zone16/cat657/

Bucho 07-08-2003 08:46 AM

Quote:

Originally posted by Kapitan Ivanov
Yes.
http://www.programmersheaven.com/zone16/cat657/

thanks :)
But i guess i should said more clearly that it was for my dedicated Linux box, and not my home pc...

but thanks anyways
- anyone else?

lawked 07-08-2003 09:43 AM

find . -type f -size 0 -exec rm -f {} \;


All times are GMT -7. The time now is 04:20 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123