Timeline for Use find to find certain directory and delete all files in it except one directory
Current License: CC BY-SA 3.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 29, 2014 at 11:47 | history | edited | Zettt | CC BY-SA 3.0 | I provided more information on the original intent of my question so people searching for this problem know what they could be using it for. |
| Jun 16, 2014 at 1:01 | comment | added | Cristian Ciupitu | @Zett, Stéphane Chazelas deserves the whole credit. I should have probably mentioned him in the question too, not just in the changelog. | |
| Jun 15, 2014 at 19:20 | answer | added | Gilles 'SO- stop being evil' | timeline score: 0 | |
| Jun 15, 2014 at 18:49 | comment | added | Zettt | @cristian-ciupitu Thank you for improving my question. | |
| S Jun 15, 2014 at 17:41 | history | suggested | Cristian Ciupitu | CC BY-SA 3.0 | removed noise and added clarification from Stéphane Chazelas' answer (http://unix.stackexchange.com/a/137131/1174) |
| Jun 15, 2014 at 17:32 | review | Suggested edits | |||
| S Jun 15, 2014 at 17:41 | |||||
| Jun 15, 2014 at 16:02 | vote | accept | Zettt | ||
| Jun 14, 2014 at 16:39 | answer | added | Stéphane Chazelas | timeline score: 6 | |
| Jun 14, 2014 at 16:18 | answer | added | mikeserv | timeline score: 0 | |
| Jun 14, 2014 at 15:38 | answer | added | Graeme | timeline score: 7 | |
| Jun 14, 2014 at 14:48 | answer | added | vadimbog | timeline score: -1 | |
| Jun 14, 2014 at 14:22 | comment | added | jw013 | What happens if you have a directory like ./Library/Caches/not_Snapshots/Caches/Snapshots/? Do you want to delete that directory because it is inside ./Library/Caches/not_Snapshots/ or save it because it is a Snapshots directory? | |
| Jun 14, 2014 at 14:04 | answer | added | Creek | timeline score: 2 | |
| Jun 14, 2014 at 13:34 | comment | added | celtschk | Well, one (dirty?) trick would be to use GNU tar with the --remove-files and --exclude options, and then delete the tar files (as bonus, if you accidentally removed a file you didn't intend to, and notice it before deleting the tar file, you can simply restore it from that archive). | |
| Jun 14, 2014 at 13:25 | review | First posts | |||
| Jun 14, 2014 at 13:27 | |||||
| Jun 14, 2014 at 13:08 | history | asked | Zettt | CC BY-SA 3.0 |