I would like to create a .tar
file from all .gz
files in $a/$b
and delete those files afterwards.
I have come up with the following code but it's not working:
cd "$a"
#tar cf $a/$b'.tar' "$b_sql.gz" "$b_moh.tar.gz"
tar cf $a/$b'.tar' $b'_*.gz'
gzip $a/$b'.tar'
rm -f $b'_*.gz'