Modifying a file?

Hi,
I want to convert a file that looks like this

>joe
XXXXXXXXXXXXXXXXXXX
>man
BBBBBBBBBBBBBBBBBBBBBSSSSSSSS

to something that looks like this (where the spacing is tab seperated)

joe  XXXXXXXXXXXXXXXXXXX
man  BBBBBBBBBBBBBBBBBBBBBSSSSSSSS

I am able to do the reverse but the other way is a different story for me.

thanks

awk '$1=$1' RS=">"  infile

Less pretty, but with a tab character:

sed 'N;s/>//;s/\n/\t/' infile

Let's add the tab character :wink:

awk '$1=$1' RS=\> OFS=\\t infile