#!/bin/sh

if test -z "$1"; then
   echo "usage: convert.sh file_in > file_out"
   echo "convert.sh convert a file contained a DNA chain written in row format"
   echo "in chain written in column format"
else
   cat $1 | perl -pe 's/A/A\n/g' | perl -pe 's/T/T\n/g' | perl -pe 's/G/G\n/g' | perl -pe 's/C/C\n/g' 
fi
