I am trying to get only the highest (folder hierarchy wise) location result into a variable using bash.

```
administrator@JenkisSrv01:/tmp/test/frontend-2.0$ find -name pom.xml
./server/pom.xml
./server/mock/pom.xml
./assembly/pom.xml
./pom.xml

```

I want only the location of the parent folder of the pom.xml to insert into a variable.

**LOCATION=./** or absolute path can also work using "pwd" **LOCATION=/tmp/test/frontend-2.0**

I can't think of a good command to get this info into a variable...
anyone?