Skip to content

Commit

Permalink
Add entry for sapfile
Browse files Browse the repository at this point in the history
  • Loading branch information
berndfinger authored Jul 14, 2023
1 parent 045749c commit a2b34ec
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# 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
```

0 comments on commit a2b34ec

Please sign in to comment.