cd /DIR1/
if [ -f abc_*] ; then
ls -l abc_*| awk 'NR >0 && !/^d/ {print $NF}' >>list.txt
chmod 664 list.txt
else
echo "file not found"
fi
it giving the error as "Binary Operator expected "
If any files found in the directory starting with the pattern "abc_" it should create a file called list.txt and move the filenames to list.txt