Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 708 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 708 Bytes

tool.sap_shell_scripts

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 the unar package from the EPEL RHEL repo)
    • zipinfo (contained in the unzip RHEL 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