[X-Unix] What's the command?

Dave Higgins dhiggins at mchsi.com
Fri Apr 16 10:10:03 PDT 2010


I was reading through some forum threads and stumbled on a pair of command-line tools that I thought would be handy for something that I'm working on, and I thought I kept it in some notes, but for the life of me I can't find it or remember the commands.

They're quite simple. One trims the filename off of a full path, and the other trims the path off of the filename. So, given

/path/to/file/on/the/drive.txt

one returns "drive.txt"
other returns "/path/to/file/on/the"

Anyone know offhand what these are?

Thanks.

Dave.


More information about the X-Unix mailing list