script using join, sed, LOOPS, VARIABLES...