Hi,
Im still new to scripting and this forum and could so with a little help
I understand:
if [ -d <dir1>/<dir2> ]; then
good
else
bad
fi
but how do I do the same check but ignore the case of <dir2>?
Many thanks!
Matt
Hi,
Im still new to scripting and this forum and could so with a little help
I understand:
if [ -d <dir1>/<dir2> ]; then
good
else
bad
fi
but how do I do the same check but ignore the case of <dir2>?
Many thanks!
Matt
In bash:
shopt -s nocaseglob