Startup code to parse the devices and create a list

I need help with a startup script that will create a list of devices and device numbers

looking like this

ALTUI= 299
AVRE400USAMain= 358
AVRInputControl= 317
AVRVolume= 388
BackPorch= 200
BIBackPorch= 254
BIBackPorchMotionSensor= 255
BIDriveway= 252
BIDrivewayMotionSensor= 253

and saves it in luld folder

A forum search will find many example of code to do this sort of thing.

Here’s one from me in 2013:

thanks mate …