Answer the question
In order to leave comments, you need to log in
How to determine if a directory exists?
Good day to all! Sorry for such questions, I'm new to this. There is a script that takes a directory name as an argument and displays a message - if there is such a directory. The script itself:
#!/bin/bash
if ; then
echo 'exists'
else
echo 'not exists'
fi
[email protected]:/home/redfern89# ./test vhd
not exists
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question