I am trying to merge different files using cat command into one file.
cat F_Worker_TEMP_VO.dat F_PERSON_NAME_VO.dat F_PERSON_CITIZENSHIP_VO.dat F_PERSON_LEGISLATIONDATA_VO.dat F_PERSON_RELIGION_VO.dat F_PERSON_PASSPORT_VO.dat F_PERSON_DRIVERSLIC_VO.dat F_PERSON_NATIONALIDE_VO.dat F_PERSON_NATIONALIDE_ADH_TEMP_VO.dat F_PERSON_NATIONALIDE_SSN_TEMP_VO.dat > Worker.dat
where Worker.dat is my output file.
Using the above code the second file gets started at the end of first file data. I want each file data to be started with a new line
I have tried inserting /n, echo in the above code. it's not giving me the output
cat F_Worker_TEMP_VO.dat F_PERSON_NAME_VO.dat F_PERSON_CITIZENSHIP_VO.dat F_PERSON_LEGISLATIONDATA_VO.dat F_PERSON_RELIGION_VO.dat F_PERSON_PASSPORT_VO.dat F_PERSON_DRIVERSLIC_VO.dat F_PERSON_NATIONALIDE_VO.dat F_PERSON_NATIONALIDE_ADH_TEMP_VO.dat F_PERSON_NATIONALIDE_SSN_TEMP_VO.dat > Worker.dat
Sample Expected format Each metadata is the result of different files I am merging. Each metadata should start with a new line
METADATA Worker EffectiveStartDate EffectiveEndDate StartDate CategoryCode ActionCode BloodType CorrespondenceLanguage DateOfBirth TownOfBirth SourceSystemOwner
METADATA PersonName PersonNameId EffectiveStartDate EffectiveEndDate PersonId(SourceSystemId) SourceSystemOwner SourceSystemId Title KnownAs LegislationCode NameType
METADATA PersonCitizenship CitizenshipId PersonId(SourceSystemId) DateFrom DateTo LegislationCode CitizenshipStatus SourceSystemOwner SourceSystemId
Actual
METADATA Worker EffectiveStartDate EffectiveEndDate StartDate CategoryCode ActionCode BloodType CorrespondenceLanguage DateOfBirth TownOfBirth SourceSystemOwner SourceSystemIdMETADATA PersonName PersonNameId EffectiveStartDate EffectiveEndDate PersonId(SourceSystemId) SourceSystemOwner SourceSystemId Title KnownAs LegislationCode NameTypeMETADATA PersonCitizenship CitizenshipId PersonId(SourceSystemId) DateFrom DateTo LegislationCode CitizenshipStatus SourceSystemOwner
Currently, there is a gap between each result file. It getting started with the end of previous file result