#!/bin/bash

echo "Enter Directory Name:"

read dir
ls $dir>tempfile.txt
count=0
if [ -d $dir ];then
for filename in `cat tempfile.txt`
do
if [ -x $filename ];then
echo "$filename"
count=`expr $count + 1`
fi
done
fi
echo "Total Executable Files Are $count"
rm tempfile.txt

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: