[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] delete all files but leave folder structure intact
- Subject: [ale] delete all files but leave folder structure intact
- From: cfowler at outpostsentinel.com (Chris Fowler)
- Date: Mon, 18 Apr 2011 15:19:26 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
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