33
rated 0 times
[
33]
[
0]
/ answers: 1 / hits: 31153
/ 2 Years ago, fri, may 27, 2022, 2:37:49
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
More From » command-line