1
다음 프로그램에서는 디렉토리의 모든 파일을 나열하지만 확장자가없는 '실행 가능'파일 만 표시하려면 어떻게해야합니까?확장명이없는 실행 파일을 찾으십니까?
find $workingDir/testcases -type f -perm -og+rx | while read file
do
echo $file
done
다음 프로그램에서는 디렉토리의 모든 파일을 나열하지만 확장자가없는 '실행 가능'파일 만 표시하려면 어떻게해야합니까?확장명이없는 실행 파일을 찾으십니까?
find $workingDir/testcases -type f -perm -og+rx | while read file
do
echo $file
done
당신은 사용할 수 있습니다!
`무엇을find $workingDir/testcases -type f ! -name "*.*" -perm -og+rx
#!/bin/bash
DIR="./";
find $DIR -type f -perm -og+rx | while read file
do
echo $file | egrep -v "\.[^/]+$";
done
'합니까? 나는 그 존재에 대해 모른다. – Quamis
! 또는 -not은 경기를 거꾸로합니다. –