#!/bin/bash

input=$1
worker=/tmp/workertmp.tar.gz
workerpath=/tmp/workertmp

rm -rf /tmp/workertmp*
mkdir -p $workerpath

line=$(cat $input | grep -a tail | awk '{print $3}' | sed 's/+//g')
tail -n +$line $input > $worker
tar -zxf $worker -C $workerpath
