Forum .LRN Q&A: Response to Bulk Upload Instructions need update?

Collapse
Posted by Eduardo Palacio on
you can see this:

https://openacs.org/bboard/q-and-a-fetch-msg.tcl?msg_id=0005id&topic_id=15&topic=dotLRN%20Development

but if you like to ty it, i do this script:

#!/bin/bash
echo "first_names, last_name, email, id, type, access_level, guest" > alumnos_list.txt

for i in `seq 3000 3100`
do
echo "alumno${i}, alumno${i}, mailto:alumno${i}@c2b.adactiv.com";, ${i}, student, limited, f >> alumnos_list.txt
done
exit 0

The OUTPUT:

first_names, last_name, email, id, type, access_level, guest
alumno3000, alumno3000, mailto:alumno3000@c2b.adactiv.com, 3000, student, limited, f
alumno3001, alumno3001, mailto:alumno3001@c2b.adactiv.com, 3001, student, limited, f
alumno3002, alumno3002, mailto:alumno3002@c2b.adactiv.com, 3002, student, limited, f
alumno3003, alumno3003, mailto:alumno3003@c2b.adactiv.com, 3003, student, limited, f
alumno3004, alumno3004, mailto:alumno3004@c2b.adactiv.com, 3004, student, limited, f
alumno3005, alumno3005, mailto:alumno3005@c2b.adactiv.com, 3005, student, limited, f
alumno3006, alumno3006, mailto:alumno3006@c2b.adactiv.com, 3006, student, limited, f
alumno3007, alumno3007, mailto:alumno3007@c2b.adactiv.com, 3007, student, limited, f
alumno3008, alumno3008, mailto:alumno3008@c2b.adactiv.com, 3008, student, limited, f
alumno3009, alumno3009, mailto:alumno3009@c2b.adactiv.com, 3009, student, limited, f
alumno3010, alumno3010, mailto:alumno3010@c2b.adactiv.com, 3010, student, limited, f
alumno3011, alumno3011, mailto:alumno3011@c2b.adactiv.com, 3011, student, limited, f
alumno3012, alumno3012, mailto:alumno3012@c2b.adactiv.com, 3012, student, limited, f
alumno3013, alumno3013, mailto:alumno3013@c2b.adactiv.com, 3013, student, limited, f
alumno3014, alumno3014, mailto:alumno3014@c2b.adactiv.com, 3014, student, limited, f
alumno3015, alumno3015, mailto:alumno3015@c2b.adactiv.com, 3015, student, limited, f

.........
.........

and it works very well, i have 100 new users.