Linux
Write a script that takes a name as a parameter, then checks if the name is a file that exists in your homedirectory. Make sure to display the result.
PLEASE GIVE IT A THUMBS UP, I SERIOUSLY NEED ONE
#!/bin/bash
if [ -e "/home/nikhil/$1" ];
then
echo "The file Exists"
else
echo "The file is not present"
fi
Get Answers For Free
Most questions answered within 1 hours.