Let say I have:foo.txtbarbaz.oooIf 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.
find files without extension
bash;shell;find;wildcards
you could use: find . -type f ! -name *.*the ! negates the following expression, here a filename that contains a '.'you can also use the -maxdepth option to reduce the search depth.