如何find那些没有扩展名的文件? 例如,在下面的屏幕中,我想返回文件sconnect而不是.xls
-rwxr-xr-x 1 root root 12K Mar 7 19:29 ./Purchase_ORDER.xls -rwxr-xr-x 1 root root 176 Mar 7 19:29 ./sconnect
尝试:
# find -type f -not -name '*.*'
祝你好运!
你只是find . \! -name '*.*' find . \! -name '*.*'
(如果你需要正确的文件,则添加-type f )