Need to have script written in either sh or ksh. Derive resultant files (File_New_A and File_New_B) from lists File_A and File_B where string elements in File_New_A and File_New_B are listed below.
Thanks for the reply danmero. I made a mistake in the description. Let me re-phrase the question again.
File_A contains Strings and content's elements are NOT IN ANY ORDER OR PATTERN AND file varies in size from one run to the next run:
a <- in both File_A and File_B
b <- unique to File_A
c <- in both File_A and File_B
d <- unique to File_A
File_B contains Strings and content's elements are NOT IN ANY ORDER OR PATTERN AND file varies in size from one run to the next run:
a <- in both File_A and File_B
c <- in both File_A and File_B
z <- unique to File_B
Need to have script written in either sh or ksh. Resultant files (File_New_A and File_New_B) is derived from comparing contents of files File_A and File_B where resultant string elements in File_New_A and File_New_B are listed below. Resultant File_New_A will contain only unique elements found only in File_A when compared with File_B. File_New_B will contain only unique elements found in only File_B when compared with File_A.
Resultant files:
File_New_A contains String:
b <- unique to File_A
d <- unique to File_A
File_New_B contains String:
z <- unique to File_B
++++++++++++++++++++++++++++++++++++++
The next run could have
File_A contains Strings and content's elements are NOT IN ANY ORDER OR PATTERN AND file varies in size from one run to the next run:
m <- only in File_A
n <- only in File_A
o <- only in File_A
p <- only in File_A
q <- in both File_A and File_B
r <- in both File_A and File_B
File_B contains Strings and content's elements are NOT IN ANY ORDER OR PATTERN AND file varies in size from one run to the next run:
q <- in both File_A and File_B
r <- in both File_A and File_B
Resultant files after comparing File_A and File_B:
Resultant files:
File_New_A contains String:
m <- unique to File_A
n <- unique to File_A
o <- unique to File_A
p <- unique to File_A
File_New_B contains String:
No elements in File_New_B since File_B have no unique elements to File_B, all files in File_B are also in File_A; therefore File_New_B is empty.