a puzzle

May. 26th, 2008 12:22 am
zwol: ((mad) science)
[personal profile] zwol
Given two shell variables, A and B, each of which is a space-separated list of numbers, how would you iterate over the lists in parallel, comparing each pair? That is, compare number A1 to number B1, A2 to B2, and so on. You may not use features not available on old systems (such as functions, arrays, and local variables) and you may not mess with the positional parameters. Comprehensibility is not important.
This account has disabled anonymous posting.
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

April 2017

S M T W T F S
      1
2345678
9101112131415
16171819 202122
23242526272829
30      

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 3rd, 2026 07:23 am
Powered by Dreamwidth Studios