Sometimes we have data in the format of

cat
dog
lion

and

meow
bark
roar

and we need to output in the following format

cat meow
dog bark
lion roar

If you have faced such a situation already and are not able to figure out how to accomplish it using shell/bash and not going into the murky worlds of python/perl, then here is a handy script at your service

#!/bin/bash
while IFS='|' read -r i j; do echo "${i} ${j}" >> combined_list.txt; done < <(paste -d '|' animal.txt sound.txt)

Comments