Display output as columns using grep/awk/sed

I have several files with say something like

cat
sparrow

I can grep for "cat" and "sparrow" and usually the output is one below the other

cat
sparrow

How can I view these as columns say

Pets     Birds
cat      sparrow

Would be great if this can be on command line using awk or grep

There are 3 files - master list and lists of what are pets and what are birds. Use grep to select from the master file (fileg.txt), making two files, that are then paste'd together.

\tmp>cat fileg.txt
cat
dog
sparrow
robin
snake
pigeon

\tmp>cat fileb.txt
sparrow
bluejay
robin
pigeon
eagle
hawk

\tmp>cat filep.txt
hamster
cat
dog
turtle
snake

\tmp>grep -f filep.txt <fileg.txt >fileg1.txt

\tmp>grep -f fileb.txt <fileg.txt >fileg2.txt

\tmp>paste fileg1.txt fileg2.txt
cat     sparrow
dog     robin
snake   pigeon