Scripting

Get Directory Names From Locate

How to strip off the filenames from a locate command:

locate ivycache |rev|cut -d'/' -f2-|rev|uniq