Hello,
I need to write a script in awk to check the total in my ascii file.
Thanks for any help
Example of my file :
967 ./export_cdc/20060326-0000106124-12
967 ./export_cdc/20060326-0000106127-12
----
xxx Total
968 ./exp_courbe_jour.old/20040404-0000102140-11
968 ./exp_courbe_jour.old/20040404-0000102140-11
----
xxx Total
972 ./exp_courbe_jour.old/20040403-0000102140-11
972 ./exp_courbe_jour.old/20040403-0000102140-11
972 ./exp_courbe_jour.old/20040403-0000102140-11
972 ./exp_courbe_jour.old/20040403-0000102140-11
972 ./exp_courbe_jour.old/20040403-0000102140-11
972 ./exp_courbe_jour.old/20040403-0000102140-11
-----
xxx Total
973 ./export_cdc/20040101-0000104552-11
973 ./export_cdc/20040101-0000104555-11
973 ./export_cdc/20040101-0000104518-11
-----
xxx Total
I need to write a script in awk to check the total in my ascii file.
Thanks for any help
Example of my file :
967 ./export_cdc/20060326-0000106124-12
967 ./export_cdc/20060326-0000106127-12
----
xxx Total
968 ./exp_courbe_jour.old/20040404-0000102140-11
968 ./exp_courbe_jour.old/20040404-0000102140-11
----
xxx Total
972 ./exp_courbe_jour.old/20040403-0000102140-11
972 ./exp_courbe_jour.old/20040403-0000102140-11
972 ./exp_courbe_jour.old/20040403-0000102140-11
972 ./exp_courbe_jour.old/20040403-0000102140-11
972 ./exp_courbe_jour.old/20040403-0000102140-11
972 ./exp_courbe_jour.old/20040403-0000102140-11
-----
xxx Total
973 ./export_cdc/20040101-0000104552-11
973 ./export_cdc/20040101-0000104555-11
973 ./export_cdc/20040101-0000104518-11
-----
xxx Total