#!/bin/bash
file_path="/Users/c2ctech/Desktop/data.csv"
if [ -e "$file_path" ]; then
echo "The File data.csv exists."
else
echo "The File data.csv does not exist."
fi
Output:

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!