var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Deleting a file (always the same size) from multiple directories
What is the best way to delete a file (always the same size, but different names), that is at different directories?
I can safely use grep to search for them recursively and delete at the same time?
You can use find and xargs. For instance if you wanted to delete a 100byte file recursively:
find . -size 100c | xargs rm -f
Thank you very much Justin! I'll try it out at a smaller scale.
By ladless in forum Programming Discussion
Last Post: 08-19-2008, 12:48 PM
By danny43 in forum Web Hosting
Last Post: 09-19-2006, 09:38 AM
By WebHostingNeeds in forum Hosting Security and Technology
Last Post: 07-05-2004, 10:21 AM
By -Edward- in forum Dedicated Server
Last Post: 12-25-2001, 10:25 PM