I have searched one file "portmap" inside root directory as follows:
find -name "portmap"
It gives location of file
.init/...somepath./portmap
Now I want to change my current directory to the location of portmap file and print the present working directory.
So I am thinking of pipeline the above location to cd. But how can I do it with one command?
Please help