#!/bin/sh
cd segments
for FILE in *;do 
tar -zcvf "../compressed/$FILE.tar.gz" $FILE
done