#!/bin/sh for file in *.txt do zip ${file}.zip $file rm $file done