gen bash script for tflabeling
using array replace hashmap for performance