<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">In a previous version of textmate the following code for a template worked to create a TM_PACKAGE variable<SPAN class="Apple-tab-span" style="white-space:pre"></SPAN><DIV><BR class="khtml-block-placeholder"></DIV><DIV>TM_PACKAGE=`sed &lt;&lt;&lt;$TM_NEW_FILE_DIRECTORY -n 's#.*classes/\(.*\)#\1#p'|tr / .` \<SPAN class="Apple-tab-span" style="white-space:pre"></SPAN></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>basically it takes the new file directory like this<SPAN class="Apple-tab-span" style="white-space:pre"></SPAN></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> /Users/ketan/Documents/client/project/development/classes/client/project</DIV><DIV>And It turns the "/" to "." and removes everything before the classes so the end result would be</DIV><DIV>client.project</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Any ideas on how to do this ? I am not very good with sed.</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Ketan </DIV></SPAN> </DIV><BR></DIV></BODY></HTML>