#!/bin/bash

awk -F , 'NR==2 {
    sep = ""
    for(i=1; i<=NF; i++) {
        if ($i ~ /^[0-9]+$/) type="int"
        else if  ($i ~ /^[0-9]+\.[0-9]*$|^[0-9]*\.[0-9]+$/) type="float"
        else if ($i ~ /^[0-9]{2}\/[0-9]{2}\/[0-9]{4}$/) type="date"
        else type="str"
        printf "%s%s", sep, type
        sep = ","
    }
    printf "\n"
    exit
}'