I have a folder without around 500 subdirectories. There is a lot of trash to be found in it and I want to clean it up.
I have already deleted certain filetypes that I don't want, like images, with this command:
find . -mindepth 1 -iname "*.jpg" -type f -delete
However, I now want to delete all extension-less files. Files like "Shopping list" intead of "Shopping list.txt"
I have tried the following command but it did not work:
find . -mindepth 1 ! -iname "*.*" -type f -delete