Okay so I am running a simple command like this:
find / -name ssh | grep bin
the output of that is this:
/usr/bin/ssh
Now I want to make it look like this for when I cd to it
/usr/bin/
I can’t figure out how to make it smart because I can brute force it to work only for this one, but what about when I want to run this same code on a different machine and the location of ssh is elsewhere.
Don’t you want this?