| # Check for argument representing the directory to perform the extraction operation in | |
| if [ -z "$1" ]; then | |
| echo "Please provide the directory to perform the extraction operation in" | |
| exit 1 | |
| fi | |
| # Go to the directory | |
| cd "$1" | |
| # Check if there is an existing result-jsonl.tar.gz file in the directory | |
| if [ ! -f "result-jsonl.tar.gz" ]; then | |
| echo "[SKIP] No result-jsonl.tar.gz file found in: $1" | |
| exit 0 | |
| fi | |
| # Extract the jsonl files | |
| echo "[START] Extracting files from result-jsonl.tar.gz into $1" | |
| tar -xzf result-jsonl.tar.gz | |
| echo "[DONE] Files extracted from result-jsonl.tar.gz into $1" |