March 2019
Intermediate to advanced
412 pages
9h 49m
English
The inverse of basename is dirname. Instead of returning the final part of a path, dirname will return everything, except the final part. Let's change our previous play to use dirname and rerun it:

We now have just the path of our variable, which could be extremely useful elsewhere in our playbook.
Read now
Unlock full access