no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | tech:linux:delete_files_but_not_directories [2014/11/15 15:13] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Command to delete files but not directories (folders) ====== | ||
| + | |||
| + | <code bash> | ||
| + | find . -type f -exec rm {} \; -print | ||
| + | </ | ||
| + | |||
| + | |||
| + | ---- | ||
| + | Keyword: Unix, Linux, ubuntu | ||