hello
How can I get the dirname from the filepath. I am looking something like this
Ankits-MacBook-Pro:~ akotak$ dirname /splunk/is/not/easy/ /splunk/is/not
echo '/splunk/is/not/easy/' | sed -E 's#(.*)/.+/?#\1#'