In my script I need the directory of the file I am working with. For example, the file=“stuff/backup/file.zip”. I need a way to get the string “stuff/backup/” from the variable $file.
In my script I need the directory of the file I am working with.
Share
is what you are looking for