#!/bin/sh file="$1" tmp=`mktemp` cp "$file" "$tmp" gzip -dN "$file" mv "$tmp" "$file"