If inside a for loop
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 I've tried something like: Code:
for i in $XXX; do Am I close? |
Hi
You could use "continue" instead of "next". Or simply use ! for "not": Code:
for i in $XXX; do |
You could also try:
Code:
[[ -f "$i" ]] && continue |
All times are GMT -5. The time now is 04:00 AM. |