#!/bin/bash
echo "Unesite argument:$1 "
var=$1
if [[ ! -f "$var" ]]
then
touch $var
sleep 1
echo "Nova datoteka $var je kreirana."
else
echo "Ova datoteka vec postoji, unesite drugu."
sleep 1
fi
Why do I get "touch missing file operand"
{}
in the question editor. – Marcus Müller Dec 02 '22 at 19:09var
actually is? – Marcus Müller Dec 02 '22 at 19:11