#!/bin/sh

for name in "$1"*.txt;
do
  bzip2 -k "$name"
done