For example : 01.txt, 02.txt, 03.txt and 04.txt has following values.
HDR|A|B|C|D|F||||||| DTL|1|2|3|4|5||||||||||| DTL|5|6|7|8|9||||||||||| TLR|A|B|C|D|F|||||||
I have to remove complete lines based on tags like HDR, TLR.
Once HDR and TLR lines are removed from four files, it should merge into single file .
we should merge in such way , should maintain files orders after removing HDR , TLR lines.(01_latest.txt, 02_latest_txt, 03_latest.txt and 04_latest.txt)
How can we achieve in UNIX Script?