Ticker

6/recent/ticker-posts

Shell Scripting Tutorial for Beginners 6 - File test operators



#! /bin/bash

echo -e "Enter the name of the file : \c"
read file_name

if [ -s $file_name ]
then
echo "$file_name not empty"
else
echo "$file_name empty"
fi

إرسال تعليق

0 تعليقات