glasgitarrewelt , 4 months ago (edited 4 months ago) Sorry to hear, I feel you: I wanted to delete all .m3u-files in my music collection when I learned: find ./ -name "*.m3u" -delete -> this would have been the right way, all .m3u in the current folder would have been deleted. find ./ -delete -name "*.m3u" -> WRONG, this just deletes the current folder and everything in it. Who would have known, that the position of -delete actually matters.
Sorry to hear, I feel you:
I wanted to delete all .m3u-files in my music collection when I learned:
find ./ -name "*.m3u" -delete -> this would have been the right way, all .m3u in the current folder would have been deleted.
find ./ -name "*.m3u" -delete
find ./ -delete -name "*.m3u" -> WRONG, this just deletes the current folder and everything in it.
find ./ -delete -name "*.m3u
Who would have known, that the position of -delete actually matters.