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/155f1b70-ec8f-49d9-a9a2-afba65c8dc5bn%40googlegroups.com.

Reply via email to