eshell: for loop

 
 2.8 ‘for’ loop
 ==============
 
 Because Eshell commands can not (easily) be combined with lisp forms,
 Eshell provides a command-oriented ‘for’-loop for convenience.  The
 syntax is as follows:
 
      for VAR in TOKENS { command invocation(s) }
 
    where ‘TOKENS’ is a space-separated sequence of values of VAR for
 each iteration.  This can even be the output of a command if ‘TOKENS’ is
 replaced with ‘{ command invocation }’.