Answers for "how to check a path is file or director in shell script"

0

how to check a path is file or director in shell script

#!/bin/bash
path="./file.sh"
if [[ -d $path ]]; then
	echo "$1 is a director"
fi
Posted by: Guest on April-18-2022

Code answers related to "how to check a path is file or director in shell script"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language