-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
045749c
commit a2b34ec
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |