I need to write a shell script where I read a variable from the environment. If the file specified by him does not exist, I want to create it.
This file path may contain some intermediate non-existent directories, so you must also create them. Thus, neither mkdir -p works here, nor a simple click works here.
What is the workaround?
Thanks!
source share