查找没有扩展名的可执行文件?

cho*_*hoc 1 linux bash find

以下程序列出了目录中的所有文件,但是如何才显示那些没有扩展名的"可执行"文件?

find $workingDir/testcases -type f -perm -og+rx  | while read file
do
        echo $file  
done
Run Code Online (Sandbox Code Playgroud)

Ret*_*old 8

你可以使用:

find $workingDir/testcases -type f ! -name "*.*" -perm -og+rx
Run Code Online (Sandbox Code Playgroud)