[EMAIL PROTECTED] dixit:

>-      for f in /proc/switch/*/vlan/*/ports
>-      do
>-              echo > $f
>-      done

How about this?

+       for f in /proc/switch/*/vlan/*/ports; do
+               test -e $f || break
+               echo >$f
+       done

Saves levels of indentation (you know, at 80c, ten tabs fill
a screen already, 4 or 5 tabs are the practical maximum :)

bye
//mirabile
-- 
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.              -- Coywolf Qi Hunt
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to