On Mon, Jun 03, 2002, [EMAIL PROTECTED] wrote about "small and extremely annoying question": > What userland tool can derive > /usr/local/bin > from: > `which gcc` that returns: > /usr/local/bin/gcc
$ dirname /usr/local/bin/gcc /usr/local/bin (or if you're into S&M, you can do the same with the more generic but complicated expr tool. Shells like zsh or bash also have builtin features that let you do such substitutions). -- Nadav Har'El | Monday, Jun 3 2002, 23 Sivan 5762 [EMAIL PROTECTED] |----------------------------------------- Phone: +972-53-245868, ICQ 13349191 |"A witty saying proves nothing." -- http://nadav.harel.org.il |Voltaire ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]