[TxMt] Template Code

Ketan Anjaria fire at kidbombay.com
Tue Sep 26 17:52:47 UTC 2006

In a previous version of textmate the following code for a template  
worked to create a TM_PACKAGE variable

TM_PACKAGE=`sed <<<$TM_NEW_FILE_DIRECTORY -n 's#.*classes/\ 
(.*\)#\1#p'|tr / .` \

basically it takes the new file directory like this

And It turns the "/" to "." and removes everything before the classes  
so the end result would be

Any ideas on how to do this ? I am not very good with sed.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20060926/36dcf8b1/attachment.html>

More information about the textmate mailing list