Let say I have:
foo.txt
bar
baz.ooo
If I use ls -1 !(*.*)
then I'll get only bar
on the output. Great, now I wish to have same results with find - some find -regex
that will do the job.
NOTE:
find -name !(*.*)
is not the answer as !(*.*)
in it is still Bash's glob which I can NOT use.