[ale] delete all files but leave folder structure intact

Michael B. Trausch mike at trausch.us
Mon Apr 18 15:46:05 EDT 2011


On 04/18/2011 03:22 PM, Ed Cashin wrote:
> To read into your question a bit, I'll assume you'd like to remove
> special files and symbolic links and named fifos as well as regular
> files.
> 
>   find xyz ! -type d -print0 | xargs -0 rm

Nice.  I hadn't thought of that.

	--- Mike


More information about the Ale mailing list