Collection of shell scripts to be used in SAP environments
-
sapfile: A program to display SAP file types based on file name patterns or patterns inside a file archive of type rar, zip, or sapcar. Requires:
lsar(contained in theunarpackage from the EPEL RHEL repo)zipinfo(contained in theunzipRHEL package)sapcar(SAP program to handle sapcar files; typical filename: SAPCAR_1115-70006178.EXE)
For displaying all file patterns and SAP file types supported by the program, you can use the following command:
awk '!/BEGIN/&&!/END/&&/_sap_file_type=/{gsub (" ", ""); gsub ("\\{_sap_file_type=\"", ": "); gsub ("\"\\}", ""); print}' sapfile