function zmaz () { echo ’Mazem subor $1’ rm $1 echo ’Subor $1 bol zmazany’ } SUBOR=$1 zmaz $SUBOR # volanie fukncie