[ale] delete all files but leave folder structure intact

Chris Fowler cfowler at outpostsentinel.com
Mon Apr 18 15:19:26 EDT 2011


find /directory -type f -exec rm {} \;


On Mon, 2011-04-18 at 15:13 -0400, Narahari 'n' Savitha wrote:
> Friends:
>  
> On the Windoze DOS world there is a command I can type del  /s /f /q
> xyz (where xyz is a folder)..
>  
> This will delete all the files only and leaves the folder structure
> intact.
>  
> How can I accomplish this in the linux world ?
>  
> Thanks
>  
> -Narahari
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo




More information about the Ale mailing list