Hey Guys,
Quick one... been researching this but to no avail.
If I have a For Loop that looks something like:
Code:
for i in $XXX; do
command
done
If I want to put an if statement in there to say, if file exists move to the next file.. how would I go about it?
I've tried something like:
Code:
for i in $XXX; do
if [ -f $i ]; then next
else
command
fi
done
However it does not like the next, I've also tried skip...
Am I close?