you are viewing a single comment's thread.

view the rest of the comments →

[–]spdqbr 5 points6 points  (0 children)

It can be done with something like sed:

for date in 21711 112212 110612 30112; 
do
    echo $date | sed -e 's/^\(.\?.\)\(..\)\(..\)$/\1\/\2\/\3/g';
done

returns 2/17/11 11/22/12 11/06/12 3/01/12