On Jun 3, 2006, at 7:32 PM, Richard A Clarke wrote:

Thanks Peter - this works perfectly from Terminal, and if the file is open
in BBEdit I see the results in the open document.

What would I have to do to make this into a filter that I can call from the
#! menu in BBEdit?
I'd like it to work on the front document, whatever it was called (using it
from the Terminal, the file must be called file.txt)

Save the following in your ~/Library/Application Support/BBEdit/Unix Support/Unix Filters/ folder. Then select the line in your document you want it to act on and choose the script from the #! menu (thanks Peter, I used the same idea to create a filter for myself based on your script :).

#!/usr/bin/perl

while(<>){
m/.*\\(.*)/;
print $1 =~ tr/,/,/, "\t", $_;
}


--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to