file1:
ABC,10,10/15/2002
XYZ,20,10/20/2002
file2:
11/14/2002
11/15/2002
11/16/2002
I need to write a script such that for every line in file2, I need to have an output as below:
Output file:
ABC,10,10/15/2002,11/14/2002
ABC,10,10/15/2002,11/15/2002
ABC,10,10/15/2002,11/16/2002
XYZ,10,10/15/2002,11/14/2002
XYZ,10,10/15/2002,11/15/2002
XYZ,10,10/15/2002,11/16/2002
ABC,10,10/15/2002
XYZ,20,10/20/2002
file2:
11/14/2002
11/15/2002
11/16/2002
I need to write a script such that for every line in file2, I need to have an output as below:
Output file:
ABC,10,10/15/2002,11/14/2002
ABC,10,10/15/2002,11/15/2002
ABC,10,10/15/2002,11/16/2002
XYZ,10,10/15/2002,11/14/2002
XYZ,10,10/15/2002,11/15/2002
XYZ,10,10/15/2002,11/16/2002