#!/bin/sh

if [ "$#" -ne 1 ]; then
    echo "Illegal number of parameters"
    exit 1
fi

file="$1"
if [ ! -f "$file" ]; then
    echo "File does not exist"
    exit 1
fi

sed -i 's/ / /g' "$file"
