I have two file's with 3 GB each to do a comparison and store the difference data into third file.
Following is the sample data.
File 1: June_01_2018.csv
File 2: June_02_2018.csv
Note: I want to store the difference into the third file with the column headers.
Expected Result: The third file should contain the records from ID
11 to 15 with the column headers.
My try: fc
command in command prompt,
>fc June_01_2018.csv June_02_2018.csv > June_Diff.csv
But getting unexpected result:
fc
is an interactive command line tool, i.e. it will always produce human readable output. Additionally, it compares text files line by line and doesn't know about the meaning of the lines. In your case, the first line containing the column headers is identical in both files, so it isn't printed. If you read the docs, you will see that your output is the expected output. I doubtfc
is the right tool for this task.