On Sat, 4 Mar 2023 10:30:12 +0100 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 2023-03-04 10:00, Bernhard Voelker wrote:
On 2/28/23 19:40, Carlos E. R. wrote:
I trying to find png files created recently in my home. So I do:
cer@Telcontar:~> find * -name "*.png" -newermt 2023-01-01
________________________^ That's ambiguous in the case you have files which begin with a '-'; find would treat it as option. Better either use '.', or leave it out completely (dot '.' is the implicit default).
Yes, I tried both. Initially I started with dot. I tried * intentionally to give the list of directories that are symlinks.
* doesn't find directories that are symlinks because it doesn't put a / on the end of the directory name, which is what is required. find -L . is the proper way to do it. * also doesn't search directories whose name starts with a . whereas find . does.