#!/bin/bash

export IFS="
"

for i in $(find "$PWD" -type d); do
    cd "$i";
    for j in $(find . -maxdepth 1 -type f); do
	echo $i/$j
    	gzip "$j";
    done
done