본문 바로가기

Linux

file 리스트를 반환하는 shell script

반응형

#!/bin/sh

for file in *
do
if grep -q POSIX $file
then
echo $file
fi
done
exit 0