Hello, I recently discovered this solution for this kind of thing. I use the unix command: ‘seq' with the the -f flag and BBEdit’s Run Unix Command.
Seq creates sequences of numbers, the -f flag allows you to use a formatted string as output. So to produce: word01 word02 word03 word04 I’d use the command: seq -f 'word%02g’ 10 To produce: Appt: 103 Appt: 104 Appt: 105 Appt: 106 Appt: 107 Appt: 108 Appt: 109 I’d use: seq -f 'Appt: %g' 103 109 You can test this on the command line (Terminal.app) but even better under the Text menu, BBEdit has the Run Unix Command. It replaces the document text or the selection with the output of the command. On the command line run ‘man printf’ to learn about formatted strings. I think this will be very useful for you. Also check out ‘man seq’ to understand the seq command better. — Chris(topher)? > On Dec 30, 2021, at 12:59 PM, Lorenz Groth <[email protected]> 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. > T Burger schrieb am Donnerstag, 30. Dezember 2021 um 21:20:45 UTC+1: > Not what you asked for,but I would use a spreadsheet for that. > > Put your words in the first column. > In the second column have it fill down with a series of numbers. > Now select both columns and copy. > Paste in BBEdit and delete the tab characters. > > Ted > > Sent from the Burger's iPad > >> On Dec 30, 2021, at 2:53 PM, Lorenz Groth <[email protected] >> <applewebdata://D7ECE943-A345-4AEB-8E75-734CB3BE84D6>> wrote: >> >> Hello! > >> I used to use programs like maple (math software) and latex for text >> editing. But I am new at programming other stuff. >> What I want to learn is how to produce a simple list of numbered word such as >> word01 >> word02 >> word03 >> word04 >> .... >> automatically to not have to do this by typing. >> Can anyone tell me how to do that with BBEdit? I guess there will be some >> loop stuff, for, while, if, do and something like this. But I have NO >> experiences with that in BBEdit. All I got is this >> and >> >> I hope my problem is understandable. I write in German English... >> > >> -- >> This is the BBEdit Talk public discussion group. If you have a feature >> request or need technical support, please email "[email protected] >> <applewebdata://D7ECE943-A345-4AEB-8E75-734CB3BE84D6>" rather than posting >> here. Follow @bbedit on Twitter: <https://twitter.com/bbedit >> <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] >> <applewebdata://D7ECE943-A345-4AEB-8E75-734CB3BE84D6>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/bbedit/727fc16f-a0a2-4c0c-813f-3ff40381968fn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/bbedit/727fc16f-a0a2-4c0c-813f-3ff40381968fn%40googlegroups.com?utm_medium=email&utm_source=footer>. >> > > > -- > 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 <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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/41377338-3657-4954-b969-bf38cac1181dn%40googlegroups.com > > <https://groups.google.com/d/msgid/bbedit/41377338-3657-4954-b969-bf38cac1181dn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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/DB2FE76D-99B0-4B40-BA90-121C64B7280E%40rustydogink.com.
