rm -rf ./Converted/*
for ivar in `cat varname.info`;do
    s=3
    e=52
    mkdir ./Converted/${ivar}
    for ist in `cat Station.info | awk '{print $1}'`;do
#        echo ${ist}
        grep -w ${ist} Station.info > tmp
        sed -n "${s}","${e}"p ./All_Data/${ivar}.txt|sed s/^M//g | column -tx >> tmp
        mv tmp ./Converted/${ivar}/${ivar}_${ist}.txt
        echo ${ivar}_${ist}.txt
        s=` expr $s + 50 `
        e=` expr $e + 50 `
    done
done

