File size: 293 Bytes
6c8202e
 
 
 
 
1
2
3
4
5
6
for tarfile in cc3m/*.tar; do
    dirname=$(basename "$tarfile" .tar) # Extracts the index from the tar file name
    mkdir -p "cc3m-images/$dirname" # Creates a directory with the index
    tar -xvf "$tarfile" -C "cc3m-images/$dirname" # Extracts the tar file into the created directory
done