Shell Scripting - File test operators
Check whether file found or not
#!/usr/bin/bash
echo -e "Enter name of th file:\c"
read file_name
if [ -e $file_name ]
then
echo "$file_name found"
else
echo "$file_name not found"
fi
Check weather directory found or not
if [ -d $file_name ]
characte...
sundarpalanivel.hashnode.dev1 min read