#! /bin/bash for R in `cat RECORDS-numeric` do S=`echo $R | cut -c1-6` T=`echo $R | cut -c15-` echo "$R -> $S/$S-$Tn" done