File size: 616 Bytes
6aa6f83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# 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"