[jao@zack]$ osh gen 10 ^ sh 'mkdir dir_%s' $
– Piped-in integers 0 ... 9 are substituted for %s.
– sh escapes to shell and executes command.