|item| # Any enumerable and any enumerable method (1..100000).with_progress.each_cons do |item| 10.times_with_progress('Counting to 10') do |i| (1..10).with_progress('Outer').map do |a| (1..10).with_progress('Middle').map do |b| # Nesting! end end
-:al ~/src/chitin % hg.stat ~/src/chitin % hg.stat | wc | L {|i| i.size } ~/src/chitin % git.status > '/tmp/test.out' ~/src/chitin % 44 - 2 ~/src/chitin % _ + 5 ~/src/chitin % wget "http://thume.ca/" ~/src/chitin % _ # run the same command again # You can also use Chitin as a library Shell Commands in Valid Ruby