#!/bin/bash
#هذا برنامج يقوم باختصار الوقت لإنشاء ملف قابل للتنفيذ 
path=/home/suliman/bin/
clear
read -p " أدخل أسم المستند : "  Document
touch $Document 
chmod +x $Document 
read -p " 1-python      2-shell script " language
if [ $language -eq 1 ]; then 
echo "#!/usr/bin/python" > $Document
elif [ $language -eq 2 ]; then 
echo '#!/bin/bash' > $Document
fi
read -p " هل تود تحرير المستند؟ : y أو n " Release
if [ $Release = y ]; then 
nano $Document 
elif [ $Release = n ]; then 
echo " تم انشاء المستند "
fi
