#!/bin/bash if [ $# -ne 3 ] then echo "error" > stderr exit 1 fi touch $1.txt echo "$2;$3" >> $1.txt exit 0