#!/bin/bash for filename in * do tar zcvf $filename.tar.gz $filename done exit 0