The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 07-30-2008
marcpascual marcpascual is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 35
Thanks, I need to re-qualify my question:

what if its not a number and you can't do math on it?

e.g.
list1:
mary
eve
delilah

list2:
joseph
adam
samson

output:
mary joseph
adam eve
samson delilah


for i in `cat list1`; ... for j in `cat list2`; ... do ... print $i $j ... done

any way around this?