Check whether the file is ordinary or not using Linux shell script in Ubuntu
echo Enter filename
read file
if [ -f $file ]
then
echo file is ordinary
else
echo file is not ordinary
fi
read file
if [ -f $file ]
then
echo file is ordinary
else
echo file is not ordinary
fi