witam,
popelnilem moj pierwszy w zyciu skrypt,
a w dodatku z bledami,
dlaczego nie dziala?
vim test
#!/bin/sh
if [`uname -r | cut -f2 -d.` == "6"];
then i=iptables;
else i=iptables24;
fi
echo $i
ale efekt wyglada tak
[root w PLD:/tmp] $ ./test
./test[6]: [6: not found
iptables24
[root w PLD:/tmp] $
wiec co jest zle?
pzdr,
pn