Difference between revisions of "For"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
{{draft}}
 
 
[[wikipedia:for]]
 
[[wikipedia:for]]
=== Example ===
+
=== Examples ===
  
 
   [[for i in]] `ls sa??`; do [[sar -f]] /var/log/[[sysstat]]/$i; done
 
   [[for i in]] `ls sa??`; do [[sar -f]] /var/log/[[sysstat]]/$i; done
 +
 +
  YOURVAR="value1 value2 value3"
 +
  for i in $YOURVAR; do # Should not be quoted
 +
        echo "$i"
 +
  done
  
 
=== [[Python]] ===
 
=== [[Python]] ===

Revision as of 14:43, 23 June 2022

Advertising: