[plug] rm of contents
Cameron Patrick
cameron at patrick.wattle.id.au
Sun Mar 16 19:27:52 WST 2003
On Sun, Mar 16, 2003 at 07:15:29PM +0800, Craig Dyke wrote:
| To some of you this will appear trivial, but, I can't seem to work it out.
|
| I have a directory structure that looks like:
|
| dir --> file
| file2
| dir2 --> file
| file2
| file3
| file3
|
| Now my aim is to delete all the files in each directory but leave
| directories intact.
| Would like it to work irrelevant of how deep the structure is.
find dir -type f -print0 | xargs -0 rm
CP.
More information about the plug
mailing list