I want to re-arrange the data (Header and Detail) in multiple pipe delimited text files, in the order specified in a reference master file and create a single output file, using shell script.
The order of the columns will be different in different input files. Data could be empty for the...
I published a post providing ways for removing duplicate lines from text files keeping the original order and a thorough explanation of how the awk one-liner works.
Hope you find it useful