I made a mistake. seq -f 'word%02g’ 10 Should be: seq -f 'word%02g’ 4
Sorry --Chris(topher)? > On Dec 30, 2021, at 4:47 PM, Christopher Waterman <[email protected]> > wrote: > > 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]> 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]" >>>> 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/727fc16f-a0a2-4c0c-813f-3ff40381968fn%40googlegroups.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/41377338-3657-4954-b969-bf38cac1181dn%40googlegroups.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/C976EE6B-B3B9-472E-B3DB-8FA0471922D8%40rustydogink.com.
