Jean, 

Your script worked like a dream, many thanks!

And thank you all for participating.

Best,
Maciek 

On Wednesday, December 8, 2021 at 9:43:24 PM UTC-5 Christopher Waterman 
wrote:

> I've been trying to get better at awk recently and this seems like an awk 
> kind of problem. 
> Printing 3 digit numbers with leading zeros is definitely a problem printf 
> is just sitting there waiting for.
>
> *Go Text • Run Unix Command *and paste in paste in this command into the 
> dialog:
> seq 250 | awk '{printf "<figure>\n<img src=\"images/eq/%03d.jpeg\" 
> width=\"100%%\" />\n</figure>\n", $0}'
>
> On Monday, December 6, 2021 at 7:32:53 AM UTC-8 Maciek Schejbal wrote:
>
>> Hullo BBEdits!
>>
>> I have 250 images to be shown in the slide show. After I copy the paths, 
>> would anybody have a way to automate BBEdit to continue numbering the 
>> following sequence?
>>
>> Many thanks,
>> Maciek
>>
>> <figure>
>> <img src="images/eq/001.jpeg" width="100%" />
>> </figure>
>> <figure>
>> <img src="images/eq/002.jpeg" width="100%" />
>> </figure>
>>
>> etc...
>>
>

-- 
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/8d18d295-6d6b-40d7-b9ef-2c6c4d876b1an%40googlegroups.com.

Reply via email to