On 12/30/21 at 3:59 PM, [email protected] (Lorenz Groth) wrote:

Thanx to Ted for your quick reaction and a semi-solution. That works. But it would be really nice to know how to generate such repeating terms. Because I need this often and in different ways.
So I'm glad for today but still interested in a more professional solution.


Here's a quick and relatively simple solution, based on a shell script and making use of BBEdit's support for _text filters_.

1. Create a new document within BBEdit.

2. Copy the text below (within the equal signs) and paste it into the document:

====
#!/bin/sh
for i in {1..50}
do
   echo "word$i"
done
====

3. Save the document to disk with a meaningful name, e.g. "make numbered words.sh".

4. Choose the BBEdit -> Folders -> Text Filters menu item.

This action should cause the Finder to open the "Text Filters" subfolder
   of BBEdit's app support folder.

5. Place the script you just created into the "Text Filters" subfolder.

You can now invoke the text filter you just created by selecting it in the Text -> Apply Text Filter submenu, with just one caveat -- but an important one:

Please be sure to select at least one character (which can be just a space) before applying this filter. (If you do _not_ do this then the filter will replace the entire contents of the active document with its own output.)


Regards

 Patrick Woolsey
==
Bare Bones Software, Inc.             <https://www.barebones.com/>

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "[email protected]" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-6F48D41613594BD28C2F434694C1FA47%40Cylinder.local.

Reply via email to