#!/bin/sh

mkdir ../cat_bzip2
mkdir ../cat_file

for a in *;
  do
  for b in *;
    do
    if [ $a != $b ]
	then
	cat "$a" "$b" > ../cat_file/"$a"'_'"$b"
	bzip2 -k ../cat_file/"$a"'_'"$b"
	mv ../cat_file/*.bz2 ../cat_bzip2
    fi
  done
done


