I'm trying to call a function from an if statement that is inside a for loop. I need to send the $i in "for i in *" to a function but i can find nothing that works.
ex.
# Perform actual file grab
for i in /Users/* ;
do
if [[ -d $i && $(excludedDir $i) ]]; then
echo $i;
fi ;
done
Can anyone hep?