Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
920 B
1
Indexable
Never
#!/bin/bash
file1="/app/server/HOBS-DataPipeline/modules/clv_load/clv_attr_det_cust.csv"
file2="/app/server/HOBS-DataPipeline/modules/clv_load/clv_attr_det_acct.csv"
file3="/app/server/HOBS-DataPipeline/modules/clv_load/clv_attr_det_subs.csv"
file4="/app/server/HOBS-DataPipeline/modules/clv_load/clv_attr_det_order.csv"
file5="/app/server/HOBS-DataPipeline/modules/clv_load/clv_attr_det_worklist.csv"
file6="/app/server/HOBS-DataPipeline/modules/clv_load/clv_attr_det_partyM.csv"
file7="/app/server/HOBS-DataPipeline/modules/clv_load/clv_attr_det_int.csv"
file8="/app/server/HOBS-DataPipeline/modules/clv_load/clv_attr_det_service.csv"
# Find common values among files
comm -12 <(sort "$file1") <(sort "$file2") | \
comm -12 - <(sort "$file3") | \
comm -12 - <(sort "$file4") | \
comm -12 - <(sort "$file5") | \
comm -12 - <(sort "$file6") | \
comm -12 - <(sort "$file7") | \
comm -12 - <(sort "$file8")