Hi All
I need really really help with this :-
I have two files ( File1 , File 2) both files are output of two different scripts.
File1 usually has a list of names ( sometimes 3 names sometimes 5 sometimes more , depends about the output of the script)
File2 usually has a list of numbers (ages) (depends about how many names in File1)
So if File1 has 3 names , File2 will have 3 different ages.
For example ,
If file1 has
Jon
Kim
Lee
File2 will has
23
44
21
I am trying to have my output to be like this :-
Jon is 23
Kim is 44
Lee is 21
my current out put is :-
Jon is 23
Jon is 44
Jon is 21
Kim is 23
Kim is 44
Kim is 21
Lee is 23
Lee is 44
Lee is 21
here is my script :-
for NM in `cat /tmp/File1 | cut -d'=' -f2 | sort -u`; do
for AG in `cat /tmp/File2 | cut -d'=' -f2 | sort -u`; do
echo -ne "$NM is $AG)" >> /tmp/Output
done
done
Can someone please help!