I have a two files, file1 and file2.
In file1 contents are:
file2 contents are:
TRD_OIY_REC=ON YUH_PON_UYT=ON WER_QSD_RCS=OFF
I have to check line by line in file2.
if ABC_DEC_EDC=ON is not present in file2 then add to file2.
In first file
SAX_IUY_TRE=OFF is there with
OFF but in file2
ON; In this case I just want to update as with the file only
All updates new updates happen in file2 only.
Output should be:
ABC_DEC_EDC=ON WER_QSD_RCS=ON WER_RTC_YTC=ON WER_QSD_RCS=OFF