Created
April 29, 2021 15:25
-
-
Save freyes/9fbe9e0f26c92c81e021813200801c42 to your computer and use it in GitHub Desktop.
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
#!/bin/bash -eu | |
SOSREPORT=$1 | |
shift | |
FILE_PATH="$@" | |
SOSREPORT_NAME=$(basename $SOSREPORT) | |
SOSREPORT_NAME=${SOSREPORT_NAME%.tar.xz} | |
FILES="" | |
for F in ${FILE_PATH}; do | |
FILES="${FILES} $SOSREPORT_NAME/$F" | |
done | |
tar xJvf $SOSREPORT $FILES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment