.
THE EAST INDIA COMPANY PVT LTD
THE EAST INDIA COMPANY PVT LTD
Date : 14/03/2016 Time : 12:45:15 Page : 1
Office : INDIANA. Code : 101 Description : TSHIRTS Month : 03/2016
Office : INDIANA. Code : 101 Description : TSHIRTS Month : 03/2016
+=====================================================================================================+
! Slno ! CrId ! Name Of Customer ! Item Code & Descrptn ! Amount ! !
Slno CrId Name Of Customer Item Code & Descrptn Amount !
+=====================================================================================================+
! 2 ! 234567 ! CHARLES DICKENS ! 101 / TSHIRTS ! 65,805.00 ! !
! 3 ! 345678 ! ROOSEVOLT HUGAS ! 101 / TSHIRTS ! 50,140.00 ! !
! 4 ! 456789 ! RICH HILLSIDE ! 101 / TSHIRTS ! 48,130.00 ! !
! 5 ! 567890 ! SAMUEL PETER ! 101 / TSHIRTS ! 51,750.00 ! !
+-----------------------------------------------------------------------------------------------------+
Prepared by : : MANAGER
THE EAST INDIA COMPANY PVT LTD
THE EAST INDIA COMPANY PVT LTD
Date : 14/03/2016 Time : 12:45:14 Page : 2
Office : INDIANA. Code : 102 Description : PANTS Month : 03/2016
Office : INDIANA. Code : 102 Description : PANTS Month : 03/2016
+=====================================================================================================+
! Slno ! CrId ! Name Of Customer ! Item Code & Descrptn ! Amount ! !
Slno CrId Name Of Customer Item Code & Descrptn Amount !
+=====================================================================================================+
! 1 ! 234567 ! CHARLES DICKENS ! 102 / PANTS ! 915.00 ! !
! 2 ! 456789 ! RICH HILLSIDE ! 102 / PANTS ! 1,610.00 ! !
+-----------------------------------------------------------------------------------------------------+
Prepared by : : MANAGER
I have a file like above. Using sed / uniq / awk how to delete all the headers, banner text etc., as below :
! Slno ! CrId ! Name Of Customer ! Item Code & Descrptn ! Amount ! !
! 2 ! 234567 ! CHARLES DICKENS ! 101 / TSHIRTS ! 65,805.00 ! !
! 3 ! 345678 ! ROOSEVOLT HUGAS ! 101 / TSHIRTS ! 50,140.00 ! !
! 4 ! 456789 ! RICH HILLSIDE ! 101 / TSHIRTS ! 48,130.00 ! !
! 5 ! 567890 ! SAMUEL PETER ! 101 / TSHIRTS ! 51,750.00 ! !
! Slno ! CrId ! Name Of Customer ! Item Code & Descrptn ! Amount ! !
! 1 ! 234567 ! CHARLES DICKENS ! 102 / PANTS ! 915.00 ! !
! 2 ! 456789 ! RICH HILLSIDE ! 102 / PANTS ! 1,610.00 ! !
Its a lengthy file, but I've posted only a sample here. One more question regarding this, I want to add the values of each customer from the entire list and print Name of Customer and Total Amount, using Awk. Please provide a solution.