basename, dirname<br><br><div class="gmail_quote">On Fri, Apr 16, 2010 at 1:10 PM, Dave Higgins <span dir="ltr"><<a href="mailto:dhiggins@mchsi.com">dhiggins@mchsi.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
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.<br>
<br>
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<br>
<br>
/path/to/file/on/the/drive.txt<br>
<br>
one returns "drive.txt"<br>
other returns "/path/to/file/on/the"<br>
<br>
Anyone know offhand what these are?<br>
<br>
Thanks.<br>
<br>
Dave.<br>
_______________________________________________<br>
X-Unix mailing list<br>
<a href="mailto:X-Unix@listserver.themacintoshguy.com">X-Unix@listserver.themacintoshguy.com</a><br>
<a href="http://listserver.themacintoshguy.com/mailman/listinfo/x-unix" target="_blank">http://listserver.themacintoshguy.com/mailman/listinfo/x-unix</a><br>
</blockquote></div><br>