{"version": 2, "width": 80, "height": 24, "timestamp": 1719317487, "env": {"SHELL": null, "TERM": "xterm"}, "title": "lesson15/part2"} [0.037575, "o", "\u001b[00m\u001b[00m\u001b[00m"] [0.038196, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~\u001b[00m$ \u001b[01;32m"] [0.37488, "o", "\r\n\u001b[?2004l\r"] [0.375026, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [2.528048, "o", ":"] [2.611781, "o", " "] [2.729634, "o", "#"] [2.909343, "o", " "] [3.045343, "o", "L"] [3.119707, "o", "e"] [3.194698, "o", "s"] [3.280811, "o", "s"] [3.347379, "o", "o"] [3.435327, "o", "n"] [3.626919, "o", " "] [3.728419, "o", "1"] [3.808809, "o", "5"] [3.940441, "o", ":"] [4.074847, "o", " "] [4.22228, "o", "P"] [4.375027, "o", "a"] [4.54701, "o", "r"] [4.685128, "o", "t"] [4.736134, "o", " "] [4.807371, "o", "2"] [4.879945, "o", ":"] [5.088037, "o", " "] [5.152333, "o", "E"] [5.25717, "o", "x"] [5.35916, "o", "a"] [5.433617, "o", "m"] [5.485359, "o", "p"] [5.617868, "o", "l"] [5.718079, "o", "e"] [5.789759, "o", "s"] [5.86283, "o", "\r\n\u001b[?2004l\r"] [5.862982, "o", "\u001b[00m\u001b[?2004h"] [5.863038, "o", "\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [6.863, "o", "\r\n\u001b[?2004l\r"] [6.863179, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [7.862982, "m", ""] [8.963065, "o", ":"] [9.036227, "o", " "] [9.130618, "o", "#"] [9.208238, "o", "#"] [9.276934, "o", " "] [9.361747, "o", "1"] [9.472619, "o", "."] [9.572343, "o", " "] [9.700067, "o", "E"] [9.851237, "o", "x"] [9.942079, "o", "a"] [10.01182, "o", "m"] [10.068745, "o", "p"] [10.156103, "o", "l"] [10.254081, "o", "e"] [10.329432, "o", " "] [10.430158, "o", "3"] [10.530319, "o", "\r\n\u001b[?2004l\r"] [10.530479, "o", "\u001b[00m"] [10.530648, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [11.530534, "o", "\r\n\u001b[?2004l\r"] [11.530711, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [12.622561, "o", ":"] [12.7885, "o", " "] [12.846528, "o", "'"] [12.925899, "o", "\r\n\u001b[?2004l\r"] [12.926017, "o", "\u001b[?2004h> "] [14.043503, "o", "T"] [14.138114, "o", "h"] [14.310511, "o", "i"] [14.464782, "o", "s"] [14.543617, "o", " "] [14.605363, "o", "i"] [14.72756, "o", "s"] [14.796462, "o", " "] [15.006743, "o", "a"] [15.1088, "o", " "] [15.19303, "o", "s"] [15.27144, "o", "c"] [15.402527, "o", "r"] [15.511385, "o", "i"] [15.612333, "o", "p"] [15.674544, "o", "t"] [15.803058, "o", " "] [15.915939, "o", "t"] [16.004913, "o", "h"] [16.129674, "o", "a"] [16.285214, "o", "t"] [16.358486, "o", " "] [16.442103, "o", "c"] [16.503832, "o", "a"] [16.625483, "o", "l"] [16.699242, "o", "c"] [16.76754, "o", "u"] [16.902778, "o", "l"] [16.960555, "o", "a"] [17.034094, "o", "t"] [17.163268, "o", "e"] [17.244509, "o", "s"] [17.327343, "o", " "] [17.403021, "o", "t"] [17.525563, "o", "h"] [17.614593, "o", "e"] [17.692627, "o", " "] [17.752149, "o", "F"] [17.806392, "o", "i"] [17.871167, "o", "b"] [17.937666, "o", "o"] [18.05927, "o", "n"] [18.170671, "o", "a"] [18.248809, "o", "c"] [18.307968, "o", "c"] [18.440198, "o", "i"] [18.595415, "o", " "] [18.664702, "o", "n"] [18.800412, "o", "u"] [18.868959, "o", "m"] [18.94172, "o", "b"] [19.005032, "o", "e"] [19.072221, "o", "r"] [19.239809, "o", "s"] [19.342282, "o", ","] [19.443049, "o", "\r\n\u001b[?2004l\r"] [19.443174, "o", "\u001b[?2004h> "] [20.570298, "o", "u"] [20.74027, "o", "s"] [20.801813, "o", "i"] [20.912816, "o", "n"] [20.982695, "o", "g"] [21.037852, "o", " "] [21.10351, "o", "a"] [21.177375, "o", "n"] [21.268828, "o", " "] [21.334532, "o", "i"] [21.429828, "o", "t"] [21.51109, "o", "e"] [21.583493, "o", "r"] [21.745189, "o", "a"] [21.870384, "o", "t"] [21.963921, "o", "i"] [22.021624, "o", "v"] [22.096261, "o", "e"] [22.19841, "o", " "] [22.329115, "o", "a"] [22.422166, "o", "l"] [22.514474, "o", "g"] [22.682857, "o", "o"] [22.737071, "o", "r"] [22.787666, "o", "i"] [22.842092, "o", "t"] [22.940901, "o", "h"] [23.07439, "o", "m"] [23.13174, "o", "."] [23.185713, "o", "\r\n\u001b[?2004l\r"] [23.185854, "o", "\u001b[?2004h> "] [24.362328, "o", "'"] [24.42515, "o", "\r\n\u001b[?2004l\r"] [24.425288, "o", "\u001b[00m"] [24.425334, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [25.613986, "o", "v"] [25.840895, "o", "i"] [25.958507, "o", "m"] [26.012412, "o", " "] [26.099274, "o", "f"] [26.167208, "o", "i"] [26.225841, "o", "b"] [26.326568, "o", "o"] [26.397161, "o", "."] [26.509729, "o", "s"] [26.651479, "o", "h"] [26.717515, "o", "\r\n"] [26.717563, "o", "\u001b[?2004l\r"] [26.717684, "o", "\u001b[00m"] [26.761485, "o", "\u001b[?1049h\u001b[22;0;0t\u001b[>4;2m\u001b[?1h\u001b=\u001b[?2004h\u001b[?1004h\u001b[1;24r\u001b[?12h\u001b[?12l\u001b[22;2t\u001b[22;1t"] [26.761863, "o", "\u001b[27m\u001b[23m\u001b[29m\u001b[m\u001b[H\u001b[2J\u001b[?25l\u001b[24;1H\"fibo.sh\""] [26.761931, "o", " 19L, 242B"] [26.766867, "o", "\u001b[2;1H▽\u001b[6n\u001b[2;1H \u001b[3;1H\u001bPzz\u001b\\\u001b[0%m\u001b[6n\u001b[3;1H \u001b[1;1H\u001b[>c\u001b]10;?\u0007\u001b]11;?\u0007"] [26.768438, "o", "\u001b[1;1H\u001b[1m\u001b[36m#!/bin/bash\u001b[m\u001b[2;1H\u001b[K\u001b[3;1H\u001b[1m\u001b[36mN\u001b[m=\u001b[1m\u001b[34m$1\u001b[m\u001b[3;5H\u001b[K\u001b[4;1H\u001b[1m\u001b[33mif \u001b[m\u001b[1m\u001b[31m[[\u001b[m \u001b[1m\u001b[33m-z\u001b[m \u001b[1m\u001b[34m$N\u001b[m \u001b[1m\u001b[31m]]\u001b[m\u001b[1m\u001b[33m;\u001b[m \u001b[1m\u001b[33mthen\r\n\u001b[m \u001b[1m\u001b[33mecho\u001b[m\u001b[1m\u001b[35m \u001b[m\u001b[1m\u001b[33m\"\u001b[m\u001b[1m\u001b[35mUsage: \u001b[m\u001b[1m\u001b[34m$0\u001b[m\u001b[1m\u001b[35m \u001b[m\u001b[1m\u001b[33m\"\u001b[m\u001b[1m\u001b[35m \u001b[m\u001b[1m\u001b[33m>&\u001b[m\u001b[1m\u001b[35m2\u001b[m\r\n \u001b[1m\u001b[33mexit\u001b[m \u001b[1m\u001b[35m1\u001b[m\r\n\u001b[1m\u001b[33mfi\u001b[m\r\n\r\n\u001b[1m\u001b[31m[[\u001b[m \u001b[1m\u001b[34m$N\u001b[m \u001b[1m\u001b[33m==\u001b[m \u001b[1m\u001b[35m0\u001b[m \u001b[1m\u001b[31m]]\u001b[m && \u001b[1m\u001b[33mecho\u001b[m\u001b[1m\u001b[35m 0 \u001b[m&& \u001b[1m\u001b[33mexit\u001b[m\r\n\u001b[1m\u001b[31m[[\u001b[m \u001b[1m\u001b[34m$N\u001b[m \u001b[1m\u001b[33m==\u001b[m \u001b[1m\u001b[35m1\u001b[m \u001b[1m\u001b[31m]]\u001b[m && \u001b[1m\u001b[33mecho\u001b[m\u001b[1m\u001b[35m 1 \u001b[m&& \u001b[1m\u001b[33mexit\u001b[m\r\n\r\n\u001b[1m\u001b[36mf0\u001b[m=\u001b[1m\u001b[35m0\u001b[m\r\n\u001b[1m\u001b[36mf1\u001b[m=\u001b[1m\u001b[35m1\u001b[m\r\n\u001b[1m\u001b[33mfor ((i=\u001b[m\u001b[1m\u001b[35m1\u001b[m\u001b[1m\u001b[33m; i4;m\u001b[23;2t\u001b[23;1t\u001b[24;1H\u001b[K\u001b[24;1H\u001b[?1004l\u001b[?2004l\u001b[?1l\u001b>\u001b[?1049l\u001b[23;0;0t\u001b[?25h\u001b[>4;m"] [29.773692, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [30.768301, "o", "\r\n\u001b[?2004l\r"] [30.768564, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [31.873554, "o", "."] [31.967659, "o", "/"] [32.110594, "o", "f"] [32.223859, "o", "i"] [32.299326, "o", "b"] [32.389728, "o", "o"] [32.483002, "o", "."] [32.546212, "o", "s"] [32.720918, "o", "h"] [32.785705, "o", "\r\n"] [32.785757, "o", "\u001b[?2004l\r"] [32.785815, "o", "\u001b[00m"] [32.788388, "o", "Usage: ./fibo.sh \r\n"] [32.788822, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [33.785934, "o", "\r\n\u001b[?2004l\r"] [33.786086, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [34.858952, "o", "f"] [35.003222, "o", "o"] [35.126841, "o", "r"] [35.249564, "o", " "] [35.353477, "o", "i"] [35.405655, "o", " "] [35.575665, "o", "i"] [35.667272, "o", "n"] [35.770928, "o", " "] [35.879919, "o", "{"] [35.955635, "o", "0"] [36.010509, "o", "."] [36.080955, "o", "."] [36.136409, "o", "1"] [36.227537, "o", "0"] [36.375048, "o", "}"] [36.497536, "o", ";"] [36.569442, "o", " "] [36.644507, "o", "d"] [36.755897, "o", "o"] [36.878856, "o", " "] [36.971007, "o", "."] [37.09552, "o", "/"] [37.169381, "o", "f"] [37.279541, "o", "i"] [37.35374, "o", "b"] [37.487775, "o", "o"] [37.674366, "o", "."] [37.775233, "o", "s"] [37.832343, "o", "h"] [37.947501, "o", " "] [38.001483, "o", "$"] [38.092439, "o", "i"] [38.160083, "o", ";"] [38.217663, "o", " "] [38.374741, "o", "d"] [38.506133, "o", "o"] [38.584386, "o", "n"] [38.685868, "o", "e"] [38.736805, "o", "\r\n"] [38.736862, "o", "\u001b[?2004l\r"] [38.737014, "o", "\u001b[00m\u001b[00m"] [38.739486, "o", "0\r\n"] [38.739797, "o", "\u001b[00m\u001b[00m"] [38.741708, "o", "1\r\n"] [38.741993, "o", "\u001b[00m\u001b[00m"] [38.744228, "o", "1\r\n"] [38.744577, "o", "\u001b[00m\u001b[00m"] [38.746289, "o", "2\r\n"] [38.746559, "o", "\u001b[00m\u001b[00m"] [38.748243, "o", "3\r\n"] [38.74851, "o", "\u001b[00m\u001b[00m"] [38.75025, "o", "5\r\n"] [38.750519, "o", "\u001b[00m\u001b[00m"] [38.75221, "o", "8\r\n"] [38.752491, "o", "\u001b[00m\u001b[00m"] [38.753868, "o", "13\r\n"] [38.754085, "o", "\u001b[00m\u001b[00m"] [38.755889, "o", "21\r\n"] [38.756163, "o", "\u001b[00m\u001b[00m"] [38.757963, "o", "34\r\n"] [38.758247, "o", "\u001b[00m\u001b[00m"] [38.759443, "o", "55\r\n"] [38.759675, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [39.736985, "o", "\r\n\u001b[?2004l\r"] [39.737146, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [40.794791, "o", "."] [40.867663, "o", "/"] [40.92094, "o", "f"] [41.01129, "o", "i"] [41.178962, "o", "b"] [41.277359, "o", "o"] [41.34911, "o", "."] [41.447203, "o", "s"] [41.571948, "o", "h"] [41.724267, "o", " "] [41.790236, "o", "1"] [41.902164, "o", "0"] [42.018761, "o", "0"] [42.092689, "o", "\r\n\u001b[?2004l\r"] [42.092807, "o", "\u001b[00m"] [42.095896, "o", "3736710778780434371\r\n"] [42.096268, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [43.092873, "o", "\r\n\u001b[?2004l\r"] [43.093041, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [44.222196, "o", ":"] [44.362716, "o", " "] [44.478477, "o", "'"] [44.633956, "o", "\r\n\u001b[?2004l\r"] [44.6341, "o", "\u001b[?2004h> "] [45.695495, "o", "T"] [45.792462, "o", "h"] [45.907625, "o", "e"] [46.036939, "o", " "] [46.141845, "o", "b"] [46.251906, "o", "a"] [46.311929, "o", "s"] [46.388653, "o", "h"] [46.463577, "o", " "] [46.523896, "o", "o"] [46.612341, "o", "p"] [46.708542, "o", "t"] [46.842263, "o", "i"] [46.942108, "o", "o"] [47.048629, "o", "n"] [47.113042, "o", " "] [47.240283, "o", "`"] [47.422918, "o", "-"] [47.475351, "o", "x"] [47.677185, "o", "`"] [47.77339, "o", " "] [47.837859, "o", "h"] [47.922674, "o", "e"] [47.999963, "o", "l"] [48.118796, "o", "p"] [48.265025, "o", "s"] [48.43396, "o", " "] [48.54558, "o", "t"] [48.635222, "o", "o"] [48.762378, "o", " "] [48.878468, "o", "d"] [48.966923, "o", "e"] [49.043729, "o", "b"] [49.208672, "o", "u"] [49.299856, "o", "g"] [49.410759, "o", " "] [49.474105, "o", "a"] [49.614709, "o", " "] [49.714748, "o", "s"] [49.864964, "o", "c"] [49.966255, "o", "r"] [50.06748, "o", "i"] [50.138118, "o", "p"] [50.210327, "o", "t"] [50.281436, "o", "s"] [50.35544, "o", "."] [50.462306, "o", "\r\n\u001b[?2004l\r"] [50.462428, "o", "\u001b[?2004h> "] [51.542892, "o", "'"] [51.621367, "o", "\r\n\u001b[?2004l\r"] [51.621498, "o", "\u001b[00m\u001b[?2004h"] [51.621547, "o", "\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [52.740904, "o", "s"] [52.801463, "o", "e"] [52.92195, "o", "d"] [53.024728, "o", " "] [53.144636, "o", "-"] [53.280694, "o", "i"] [53.35552, "o", " "] [53.406535, "o", "f"] [53.458355, "o", "i"] [53.529338, "o", "b"] [53.646357, "o", "o"] [53.708005, "o", "."] [53.830737, "o", "s"] [53.900492, "o", "h"] [53.995581, "o", " "] [54.106342, "o", "-"] [54.211636, "o", "e"] [54.27021, "o", " "] [54.358547, "o", "'"] [54.4188, "o", "1"] [54.488867, "o", " "] [54.542974, "o", "s"] [54.608529, "o", "/"] [54.681553, "o", "b"] [54.747966, "o", "a"] [54.833817, "o", "s"] [54.923516, "o", "h"] [55.063961, "o", "."] [55.227547, "o", "*"] [55.331245, "o", "/"] [55.415111, "o", "b"] [55.599301, "o", "a"] [55.664164, "o", "s"] [55.779983, "o", "h"] [55.854505, "o", " "] [55.999638, "o", "-"] [56.160731, "o", "x"] [56.254182, "o", "/"] [56.388865, "o", "'"] [56.519196, "o", "\r\n"] [56.519364, "o", "\u001b[?2004l\r"] [56.519415, "o", "\u001b[00m"] [56.521844, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [57.591083, "o", "h"] [57.644441, "o", "e"] [57.798193, "o", "a"] [57.867124, "o", "d"] [57.954786, "o", " "] [58.019457, "o", "-"] [58.187108, "o", "1"] [58.263015, "o", " "] [58.332667, "o", "f"] [58.392945, "o", "i"] [58.452306, "o", "b"] [58.54115, "o", "o"] [58.62087, "o", "."] [58.752403, "o", "s"] [58.818286, "o", "h"] [58.8737, "o", "\r\n\u001b[?2004l\r"] [58.873833, "o", "\u001b[00m"] [58.875743, "o", "#!/bin/bash -x\r\n"] [58.875975, "o", "\u001b[?2004h"] [58.876043, "o", "\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [59.873901, "o", "\r\n\u001b[?2004l\r"] [59.874058, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [60.960015, "o", "."] [61.08984, "o", "/"] [61.161562, "o", "f"] [61.25312, "o", "i"] [61.326338, "o", "b"] [61.402181, "o", "o"] [61.498572, "o", "."] [61.597745, "o", "s"] [61.691707, "o", "h"] [61.851778, "o", " "] [61.909488, "o", "3"] [62.052344, "o", "\r\n\u001b[?2004l\r"] [62.052481, "o", "\u001b[00m"] [62.055112, "o", "+ N=3\r\n+ [[ -z 3 ]]\r\n"] [62.055252, "o", "+ [[ 3 == 0 ]]\r\n+ [[ 3 == 1 ]]\r\n+ f0=0\r\n+ f1=1\r\n+ (( i=1 ))\r\n+ (( i\u001b[?1049l\u001b[23;0;0t"] [67.088855, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [68.088289, "o", "\r\n\u001b[?2004l\r"] [68.088459, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [69.162993, "o", ":"] [69.305268, "o", " "] [69.374851, "o", "\""] [69.544355, "o", "\r\n\u001b[?2004l\r"] [69.544499, "o", "\u001b[?2004h> "] [70.598931, "o", "D"] [70.656567, "o", "e"] [70.75087, "o", "b"] [70.848917, "o", "u"] [70.960289, "o", "g"] [71.088062, "o", " "] [71.253956, "o", "m"] [71.328789, "o", "e"] [71.473044, "o", "s"] [71.595697, "o", "s"] [71.701787, "o", "a"] [71.7524, "o", "g"] [71.81058, "o", "e"] [71.89878, "o", "s"] [71.978365, "o", " "] [72.071462, "o", "a"] [72.188373, "o", "r"] [72.281007, "o", "e"] [72.332617, "o", " "] [72.390469, "o", "s"] [72.575418, "o", "e"] [72.742562, "o", "n"] [72.851629, "o", "t"] [72.916981, "o", " "] [73.003494, "o", "t"] [73.073632, "o", "o"] [73.219723, "o", " "] [73.281144, "o", "s"] [73.357941, "o", "t"] [73.45558, "o", "d"] [73.535366, "o", "e"] [73.633633, "o", "r"] [73.762745, "o", "r"] [73.925165, "o", "."] [73.976254, "o", " "] [74.047292, "o", "L"] [74.173005, "o", "e"] [74.270635, "o", "t"] [74.462119, "o", "'"] [74.542249, "o", "s"] [74.72476, "o", " "] [74.811219, "o", "r"] [74.924812, "o", "e"] [74.994541, "o", "d"] [75.086124, "o", "i"] [75.196684, "o", "r"] [75.29284, "o", "e"] [75.369521, "o", "c"] [75.437511, "o", "t"] [75.608186, "o", " "] [75.736055, "o", "s"] [75.803837, "o", "t"] [75.956357, "o", "d"] [76.103232, "o", "e"] [76.16996, "o", "r"] [76.251345, "o", "r"] [76.339861, "o", " "] [76.397584, "o", "t"] [76.488181, "o", "o"] [76.586661, "o", " "] [76.651028, "o", "s"] [76.72799, "o", "t"] [76.80885, "o", "d"] [76.866258, "o", "o"] [77.000154, "o", "u"] [77.165867, "o", "t"] [77.36048, "o", "."] [77.547344, "o", "\r\n\u001b[?2004l\r"] [77.547518, "o", "\u001b[?2004h> "] [78.610285, "o", "\""] [78.771154, "o", "\r\n\u001b[?2004l\r"] [78.771315, "o", "\u001b[00m\u001b[?2004h"] [78.771415, "o", "\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [79.891855, "o", "."] [80.03038, "o", "/"] [80.11808, "o", "f"] [80.20571, "o", "i"] [80.258061, "o", "b"] [80.319369, "o", "o"] [80.434384, "o", "."] [80.564807, "o", "s"] [80.718164, "o", "h"] [80.779282, "o", " "] [80.839314, "o", "1"] [80.921848, "o", "0"] [80.97807, "o", " "] [81.072087, "o", "2"] [81.1339, "o", ">"] [81.214171, "o", "&"] [81.354221, "o", "1"] [81.47048, "o", " "] [81.587283, "o", "|"] [81.643183, "o", " "] [81.736218, "o", "l"] [81.827938, "o", "e"] [81.889226, "o", "s"] [81.965105, "o", "s"] [82.036199, "o", "\r\n\u001b[?2004l\r"] [82.036321, "o", "\u001b[00m"] [82.036606, "o", "\u001b[00m"] [82.038096, "o", "\u001b[?1049h\u001b[22;0;0t\u001b[?1h\u001b=\r"] [82.038566, "o", "+ N=10\r\n+ [[ -z 10 ]]\r\n"] [82.038622, "o", "+ [[ 10 == 0 ]]\r\n+ [[ 10 == 1 ]]\r\n+ f0=0\r\n+ f1=1\r\n+ (( i=1 ))\r\n+ (( i\u001b[?1049l\u001b[23;0;0t"] [85.187784, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [86.186868, "o", "\r\n\u001b[?2004l\r"] [86.18701, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [87.186922, "m", ""] [88.315986, "o", ":"] [88.376699, "o", " "] [88.472824, "o", "#"] [88.586794, "o", "#"] [88.652871, "o", " "] [88.841632, "o", "2"] [88.917082, "o", "."] [88.983965, "o", " "] [89.190454, "o", "E"] [89.273466, "o", "x"] [89.336769, "o", "a"] [89.433339, "o", "m"] [89.523023, "o", "p"] [89.60533, "o", "l"] [89.790673, "o", "e"] [89.857871, "o", " "] [89.981583, "o", "4"] [90.06028, "o", "\r\n\u001b[?2004l\r"] [90.060392, "o", "\u001b[00m"] [90.060462, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [91.060457, "o", "\r\n\u001b[?2004l\r"] [91.060612, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [92.189309, "o", ":"] [92.307931, "o", " "] [92.407199, "o", "'"] [92.476581, "o", "\r\n\u001b[?2004l\r"] [92.476721, "o", "\u001b[?2004h> "] [93.586996, "o", "T"] [93.698852, "o", "h"] [93.771103, "o", "i"] [93.87215, "o", "s"] [93.956904, "o", " "] [94.034593, "o", "i"] [94.205692, "o", "s"] [94.325683, "o", " "] [94.446432, "o", "a"] [94.534901, "o", " "] [94.652312, "o", "s"] [94.839796, "o", "c"] [94.891493, "o", "r"] [95.015305, "o", "i"] [95.084361, "o", "p"] [95.187795, "o", "t"] [95.238512, "o", " "] [95.314662, "o", "t"] [95.407759, "o", "h"] [95.49683, "o", "a"] [95.591797, "o", "t"] [95.652087, "o", " "] [95.836098, "o", "s"] [95.93683, "o", "o"] [96.060986, "o", "l"] [96.116766, "o", "v"] [96.216345, "o", "e"] [96.331272, "o", "s"] [96.436273, "o", " "] [96.538205, "o", "t"] [96.59815, "o", "h"] [96.682517, "o", "e"] [96.741264, "o", " "] [96.81469, "o", "p"] [96.937859, "o", "r"] [97.000463, "o", "o"] [97.132016, "o", "b"] [97.184349, "o", "l"] [97.282723, "o", "e"] [97.368083, "o", "m"] [97.453425, "o", " "] [97.590198, "o", "o"] [97.658019, "o", "f"] [97.749007, "o", " "] [97.817656, "o", "T"] [97.929311, "o", "o"] [98.04979, "o", "w"] [98.115082, "o", "e"] [98.199731, "o", "r"] [98.350787, "o", "s"] [98.420178, "o", " "] [98.549293, "o", "o"] [98.634593, "o", "f"] [98.686133, "o", " "] [98.818817, "o", "H"] [98.97468, "o", "a"] [99.098455, "o", "n"] [99.149807, "o", "o"] [99.276207, "o", "i"] [99.359288, "o", ","] [99.412879, "o", "\r\n\u001b[?2004l\r"] [99.413011, "o", "\u001b[?2004h> "] [100.517797, "o", "u"] [100.596772, "o", "s"] [100.725556, "o", "i"] [100.838183, "o", "n"] [100.942775, "o", "g"] [101.038393, "o", " "] [101.204793, "o", "a"] [101.338404, "o", " "] [101.416798, "o", "r"] [101.51974, "o", "e"] [101.584426, "o", "c"] [101.704739, "o", "u"] [101.766966, "o", "r"] [101.902653, "o", "s"] [101.994263, "o", "i"] [102.047114, "o", "v"] [102.161182, "o", "e"] [102.364599, "o", " "] [102.470638, "o", "a"] [102.558191, "o", "l"] [102.680798, "o", "g"] [102.793219, "o", "o"] [102.925806, "o", "r"] [103.057673, "o", "i"] [103.17775, "o", "t"] [103.244284, "o", "h"] [103.376014, "o", "m"] [103.467649, "o", "."] [103.586542, "o", "\r\n\u001b[?2004l\r"] [103.586673, "o", "\u001b[?2004h> "] [104.694785, "o", "'"] [104.789565, "o", "\r\n\u001b[?2004l\r"] [104.789699, "o", "\u001b[00m"] [104.789756, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [105.912361, "o", "v"] [105.964887, "o", "i"] [106.174279, "o", "m"] [106.249335, "o", " "] [106.356375, "o", "h"] [106.487309, "o", "a"] [106.574901, "o", "n"] [106.632094, "o", "o"] [106.754666, "o", "i"] [106.827614, "o", "."] [106.888312, "o", "s"] [106.978051, "o", "h"] [107.055771, "o", "\r\n\u001b[?2004l\r"] [107.055891, "o", "\u001b[00m"] [107.094291, "o", "\u001b[?1049h\u001b[22;0;0t\u001b[>4;2m\u001b[?1h\u001b=\u001b[?2004h\u001b[?1004h\u001b[1;24r\u001b[?12h\u001b[?12l\u001b[22;2t\u001b[22;1t"] [107.094687, "o", "\u001b[27m\u001b[23m\u001b[29m\u001b[m\u001b[H\u001b[2J\u001b[?25l\u001b[24;1H\"hanoi.sh\""] [107.094746, "o", " 18L, 454B"] [107.09863, "o", "\u001b[2;1H▽\u001b[6n\u001b[2;1H \u001b[3;1H\u001bPzz\u001b\\\u001b[0%m\u001b[6n\u001b[3;1H \u001b[1;1H\u001b[>c\u001b]10;?\u0007\u001b]11;?\u0007"] [107.101003, "o", "\u001b[1;1H\u001b[1m\u001b[36m#!/bin/bash\u001b[m\u001b[2;1H\u001b[K\u001b[3;1H\u001b[1m\u001b[36msolve_hanoi() {\u001b[m\u001b[3;16H\u001b[K\u001b[4;5H\u001b[1m\u001b[33mlocal\u001b[m\u001b[1m\u001b[36m disks\u001b[m\u001b[1m\u001b[33m=\u001b[m\u001b[1m\u001b[34m$1\u001b[m\u001b[1m\u001b[36m src\u001b[m\u001b[1m\u001b[33m=\u001b[m\u001b[1m\u001b[34m$2\u001b[m\u001b[1m\u001b[36m dst\u001b[m\u001b[1m\u001b[33m=\u001b[m\u001b[1m\u001b[34m$3\u001b[m\u001b[1m\u001b[36m aux\u001b[m\u001b[1m\u001b[33m=\u001b[m\u001b[1m\u001b[34m$4\u001b[m\r\n \u001b[1m\u001b[33mif \u001b[m\u001b[1m\u001b[31m((\u001b[mdisks \u001b[1m\u001b[33m>\u001b[m \u001b[1m\u001b[35m0\u001b[m\u001b[1m\u001b[31m))\u001b[m\u001b[1m\u001b[33m;\u001b[m \u001b[1m\u001b[33mthen\u001b[m\u001b[6;9Hsolve_hanoi \u001b[1m\u001b[34m$((\u001b[m\u001b[1m\u001b[31mdisks - \u001b[m\u001b[1m\u001b[35m1\u001b[m\u001b[1m\u001b[34m))\u001b[m \u001b[1m\u001b[34m$src\u001b[m \u001b[1m\u001b[34m$aux\u001b[m \u001b[1m\u001b[34m$dst\u001b[m\u001b[7;9H\u001b[1m\u001b[33mecho\u001b[m\u001b[1m\u001b[35m \u001b[m\u001b[1m\u001b[33m\"\u001b[m\u001b[1m\u001b[35mmove \u001b[m\u001b[1m\u001b[34m$src\u001b[m\u001b[1m\u001b[35m --> \u001b[m\u001b[1m\u001b[34m$dst\u001b[m\u001b[1m\u001b[33m\"\u001b[m\u001b[8;9H\u001b[1m\u001b[31m((\u001b[mnr_moves++\u001b[1m\u001b[31m))\u001b[m\u001b[9;9Hsolve_hanoi \u001b[1m\u001b[34m$((\u001b[m\u001b[1m\u001b[31mdisks - \u001b[m\u001b[1m\u001b[35m1\u001b[m\u001b[1m\u001b[34m))\u001b[m \u001b[1m\u001b[34m$aux\u001b[m \u001b[1m\u001b[34m$dst\u001b[m \u001b[1m\u001b[34m$src\u001b[m\r\n \u001b[1m\u001b[33mfi\u001b[m\r\n\u001b[1m\u001b[36m}\u001b[m\r\n\r\n\u001b[1m\u001b[33mread\u001b[m \u001b[1m\u001b[31m-p\u001b[m \u001b[1m\u001b[33m\"\u001b[m\u001b[1m\u001b[35mTowers of Hanoi. How many disks? \u001b[m\u001b[1m\u001b[33m\"\u001b[m disks\r\n\r\n\u001b[1m\u001b[36mnr_moves\u001b[m=\u001b[1m\u001b[35m0\u001b[m \u001b[1m\u001b[36m# start with no moves\u001b[m\r\nsolve_hanoi \u001b[1m\u001b[34m$disks\u001b[m \u001b[1m\u001b[33m'\u001b[m\u001b[1m\u001b[35msrc\u001b[m\u001b[1m\u001b[33m'\u001b[m \u001b[1m\u001b[33m'\u001b[m\u001b[1m\u001b[35mdst\u001b[m\u001b[1m\u001b[33m'\u001b[m \u001b[1m\u001b[33m'\u001b[m\u001b[1m\u001b[35maux\u001b[m\u001b[1m\u001b[33m'\r\n\r\necho\u001b[m\u001b[1m\u001b[35m \u001b[m\u001b[1m\u001b[33m\"\u001b[m\u001b[1m\u001b[35mIt took \u001b[m\u001b[1m\u001b[34m$nr_moves\u001b[m\u001b[1m\u001b[35m moves to solve Towers for \u001b[m\u001b[1m\u001b[34m$disks\u001b[m\u001b[1m\u001b[35m disks.\u001b[m\u001b[1m\u001b[33m\"\u001b[m\r\n\u001b[1m\u001b[34m~ \u001b[20;1H~ \u001b[21;1H~ \u001b[22;1H~ \u001b[23;1H~ \u001b[m\u001b[24;63H1,1\u001b[11CAll\u001b[1;1H\u001b[?25h\u001b[?4m"] [108.055861, "m", ""] [109.106291, "o", "\u001b[?25l\u001b[24;1H\u001b[K\u001b[24;1H:q\u001b[?25h"] [110.106281, "o", "\r"] [110.107174, "o", "\u001b[?25l\u001b[?2004l\u001b[>4;m\u001b[23;2t\u001b[23;1t\u001b[24;1H\u001b[K\u001b[24;1H\u001b[?1004l\u001b[?2004l\u001b[?1l\u001b>\u001b[?1049l\u001b[23;0;0t\u001b[?25h\u001b[>4;m"] [110.109696, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [111.106489, "o", "\r\n\u001b[?2004l\r"] [111.106564, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [112.25952, "o", "."] [112.372775, "o", "/"] [112.430706, "o", "h"] [112.509193, "o", "a"] [112.588992, "o", "n"] [112.666356, "o", "o"] [112.758366, "o", "i"] [112.822901, "o", "."] [112.899152, "o", "s"] [112.961413, "o", "h"] [113.032794, "o", "\r\n\u001b[?2004l\r"] [113.032959, "o", "\u001b[00m"] [113.035437, "o", "Towers of Hanoi. How many disks? "] [114.128857, "o", "0"] [115.1567, "o", "\r\n"] [115.156866, "o", "It took 0 moves to solve Towers for 0 disks.\r\n"] [115.157412, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [116.156853, "o", "\r\n\u001b[?2004l\r"] [116.157033, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [117.215485, "o", "."] [117.420684, "o", "/"] [117.551766, "o", "h"] [117.628364, "o", "a"] [117.715165, "o", "n"] [117.811646, "o", "o"] [117.900548, "o", "i"] [118.056943, "o", "."] [118.157976, "o", "s"] [118.21567, "o", "h"] [118.395709, "o", "\r\n"] [118.395757, "o", "\u001b[?2004l\r"] [118.395902, "o", "\u001b[00m"] [118.397675, "o", "Towers of Hanoi. How many disks? "] [119.451669, "o", "1"] [120.48495, "o", "\r\n"] [120.485162, "o", "move src --> dst\r\n"] [120.485217, "o", "It took 1 moves to solve Towers for 1 disks.\r\n"] [120.485731, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [121.485105, "o", "\r\n\u001b[?2004l\r"] [121.485275, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [122.550263, "o", "."] [122.671723, "o", "/"] [122.7508, "o", "h"] [122.832486, "o", "a"] [122.902861, "o", "n"] [122.962854, "o", "o"] [123.080456, "o", "i"] [123.202517, "o", "."] [123.301517, "o", "s"] [123.412463, "o", "h"] [123.500226, "o", "\r\n\u001b[?2004l\r"] [123.500343, "o", "\u001b[00m"] [123.502982, "o", "Towers of Hanoi. How many disks? "] [124.611873, "o", "2"] [125.68672, "o", "\r\n"] [125.686972, "o", "move src --> aux\r\n"] [125.687024, "o", "move src --> dst\r\n"] [125.687142, "o", "move aux --> dst\r\nIt took 3 moves to solve Towers for 2 disks.\r\n"] [125.687784, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [126.686851, "o", "\r\n\u001b[?2004l\r"] [126.687027, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [127.744429, "o", "."] [127.882993, "o", "/"] [128.005438, "o", "h"] [128.109133, "o", "a"] [128.211897, "o", "n"] [128.298913, "o", "o"] [128.366895, "o", "i"] [128.502832, "o", "."] [128.569981, "o", "s"] [128.632316, "o", "h"] [128.687858, "o", " "] [128.865602, "o", "<"] [129.023886, "o", "<"] [129.160689, "o", "<"] [129.300255, "o", " "] [129.374622, "o", "3"] [129.55643, "o", "\r\n\u001b[?2004l\r"] [129.55658, "o", "\u001b[00m"] [129.55931, "o", "move src --> dst\r\n"] [129.55936, "o", "move src --> aux\r\nmove dst --> aux\r\n"] [129.559473, "o", "move src --> dst\r\nmove aux --> src\r\nmove aux --> dst\r\n"] [129.559524, "o", "move src --> dst\r\n"] [129.559638, "o", "It took 7 moves to solve Towers for 3 disks.\r\n"] [129.560033, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [130.556597, "o", "\r\n\u001b[?2004l\r"] [130.556783, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [131.642017, "o", "."] [131.749963, "o", "/"] [131.811314, "o", "h"] [131.879691, "o", "a"] [132.023855, "o", "n"] [132.119174, "o", "o"] [132.191492, "o", "i"] [132.255755, "o", "."] [132.317152, "o", "s"] [132.39384, "o", "h"] [132.447347, "o", " "] [132.515149, "o", "<"] [132.575827, "o", "<"] [132.778184, "o", "<"] [132.943061, "o", " "] [133.080182, "o", "4"] [133.24852, "o", "\r\n\u001b[?2004l\r"] [133.248686, "o", "\u001b[00m"] [133.251482, "o", "move src --> aux\r\nmove src --> dst\r\n"] [133.251541, "o", "move aux --> dst\r\nmove src --> aux\r\n"] [133.251705, "o", "move dst --> src\r\nmove dst --> aux\r\nmove src --> aux\r\n"] [133.251816, "o", "move src --> dst\r\n"] [133.251861, "o", "move aux --> dst\r\nmove aux --> src\r\nmove dst --> src\r\nmove aux --> dst\r\n"] [133.251983, "o", "move src --> aux\r\nmove src --> dst\r\nmove aux --> dst\r\n"] [133.252081, "o", "It took 15 moves to solve Towers for 4 disks.\r\n"] [133.252555, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [134.248625, "o", "\r\n\u001b[?2004l\r"] [134.248813, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [135.301929, "o", "."] [135.435283, "o", "/"] [135.485928, "o", "h"] [135.599802, "o", "a"] [135.741308, "o", "n"] [135.919122, "o", "o"] [136.030655, "o", "i"] [136.087491, "o", "."] [136.193424, "o", "s"] [136.280658, "o", "h"] [136.411165, "o", " "] [136.537367, "o", "<"] [136.591934, "o", "<"] [136.748013, "o", "<"] [136.848067, "o", " "] [136.927768, "o", "5"] [137.067909, "o", "\r\n"] [137.067947, "o", "\u001b[?2004l\r"] [137.068042, "o", "\u001b[00m"] [137.06971, "o", "move src --> dst\r\n"] [137.069783, "o", "move src --> aux\r\n"] [137.069812, "o", "move dst --> aux\r\nmove src --> dst\r\nmove aux --> src\r\n"] [137.069871, "o", "move aux --> dst\r\nmove src --> dst\r\nmove src --> aux\r\n"] [137.06995, "o", "move dst --> aux\r\n"] [137.069984, "o", "move dst --> src\r\nmove aux --> src\r\n"] [137.070047, "o", "move dst --> aux\r\nmove src --> dst\r\nmove src --> aux\r\n"] [137.0701, "o", "move dst --> aux\r\nmove src --> dst\r\n"] [137.070153, "o", "move aux --> src\r\n"] [137.070183, "o", "move aux --> dst\r\nmove src --> dst\r\n"] [137.070242, "o", "move aux --> src\r\nmove dst --> aux\r\n"] [137.070276, "o", "move dst --> src\r\nmove aux --> src\r\n"] [137.070331, "o", "move aux --> dst\r\n"] [137.070364, "o", "move src --> dst\r\nmove src --> aux\r\n"] [137.070424, "o", "move dst --> aux\r\nmove src --> dst\r\n"] [137.070456, "o", "move aux --> src\r\nmove aux --> dst\r\n"] [137.070509, "o", "move src --> dst\r\nIt took 31 moves to solve Towers for 5 disks.\r\n"] [137.070765, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [138.068098, "o", "\r\n\u001b[?2004l\r"] [138.068272, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [139.147641, "o", "."] [139.247526, "o", "/"] [139.381008, "o", "h"] [139.433808, "o", "a"] [139.551166, "o", "n"] [139.662262, "o", "o"] [139.834471, "o", "i"] [139.909099, "o", "."] [139.990254, "o", "s"] [140.062079, "o", "h"] [140.120174, "o", " "] [140.234391, "o", "<"] [140.349841, "o", "<"] [140.500956, "o", "<"] [140.559435, "o", " "] [140.632716, "o", "5"] [140.728374, "o", " "] [140.832992, "o", "|"] [140.91808, "o", " "] [141.008935, "o", "w"] [141.114154, "o", "c"] [141.183052, "o", " "] [141.255145, "o", "-"] [141.306195, "o", "l"] [141.383944, "o", "\r\n"] [141.383997, "o", "\u001b[?2004l\r"] [141.384138, "o", "\u001b[00m"] [141.384407, "o", "\u001b[00m"] [141.388188, "o", "32\r\n"] [141.38839, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [142.384137, "o", "\r\n\u001b[?2004l\r"] [142.384318, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [143.485719, "o", "."] [143.605652, "o", "/"] [143.68174, "o", "h"] [143.735144, "o", "a"] [143.840721, "o", "n"] [143.931901, "o", "o"] [144.071139, "o", "i"] [144.156685, "o", "."] [144.281243, "o", "s"] [144.360082, "o", "h"] [144.456114, "o", " "] [144.571627, "o", "<"] [144.65697, "o", "<"] [144.784415, "o", "<"] [144.881085, "o", " "] [144.992106, "o", "6"] [145.047958, "o", " "] [145.128418, "o", "|"] [145.201254, "o", " "] [145.255043, "o", "w"] [145.334334, "o", "c"] [145.412595, "o", " "] [145.494879, "o", "-"] [145.639474, "o", "l"] [145.749906, "o", "\r\n"] [145.749967, "o", "\u001b[?2004l\r"] [145.750093, "o", "\u001b[00m"] [145.750535, "o", "\u001b[00m"] [145.755673, "o", "64\r\n"] [145.755975, "o", "\u001b[?2004h"] [145.756005, "o", "\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [146.750113, "o", "\r\n\u001b[?2004l\r"] [146.750282, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [147.944565, "o", "."] [148.050134, "o", "/"] [148.248454, "o", "h"] [148.342131, "o", "a"] [148.457198, "o", "n"] [148.535355, "o", "o"] [148.657665, "o", "i"] [148.753766, "o", "."] [148.806969, "o", "s"] [148.858385, "o", "h"] [149.033981, "o", " "] [149.115254, "o", "<"] [149.204819, "o", "<"] [149.324392, "o", "<"] [149.403937, "o", " "] [149.519419, "o", "1"] [149.643409, "o", "0"] [149.715689, "o", " "] [149.791723, "o", "|"] [149.883427, "o", " "] [150.033653, "o", "w"] [150.089593, "o", "c"] [150.140978, "o", " "] [150.213588, "o", "-"] [150.291024, "o", "l"] [150.363831, "o", "\r\n\u001b[?2004l\r"] [150.363965, "o", "\u001b[00m"] [150.364424, "o", "\u001b[00m"] [150.396395, "o", "1024\r\n"] [150.39664, "o", "\u001b[?2004h"] [150.396681, "o", "\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [151.364043, "o", "\r\n\u001b[?2004l\r"] [151.364219, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [152.535333, "o", "."] [152.69887, "o", "/"] [152.827364, "o", "h"] [152.921458, "o", "a"] [153.015909, "o", "n"] [153.147137, "o", "o"] [153.230497, "o", "i"] [153.404007, "o", "."] [153.534737, "o", "s"] [153.662079, "o", "h"] [153.777977, "o", " "] [153.904421, "o", "<"] [153.999859, "o", "<"] [154.126653, "o", "<"] [154.192332, "o", " "] [154.350284, "o", "1"] [154.417368, "o", "6"] [154.608802, "o", " "] [154.682121, "o", "|"] [154.741607, "o", " "] [154.823085, "o", "w"] [154.898747, "o", "c"] [155.099723, "o", " "] [155.171795, "o", "-"] [155.392226, "o", "l"] [155.501843, "o", "\r\n\u001b[?2004l\r"] [155.501993, "o", "\u001b[00m"] [155.502453, "o", "\u001b[00m"] [157.504681, "o", "65536\r\n"] [157.505013, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [158.505588, "o", "\r\n\u001b[?2004l\r"] [158.505741, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [159.606175, "o", ":"] [159.670011, "o", " "] [159.81731, "o", "\""] [159.879397, "o", "\r\n\u001b[?2004l\r"] [159.879545, "o", "\u001b[?2004h> "] [160.932159, "o", "L"] [161.08451, "o", "e"] [161.165332, "o", "t"] [161.244333, "o", "'"] [161.369029, "o", "s"] [161.504697, "o", " "] [161.620082, "o", "t"] [161.748326, "o", "r"] [161.849584, "o", "y"] [161.918476, "o", " "] [162.006952, "o", "s"] [162.079202, "o", "o"] [162.22574, "o", "m"] [162.306531, "o", "e"] [162.443672, "o", " "] [162.534488, "o", "d"] [162.596828, "o", "e"] [162.731966, "o", "b"] [162.804984, "o", "u"] [162.869694, "o", "g"] [162.941047, "o", "g"] [163.048541, "o", "i"] [163.125579, "o", "n"] [163.206826, "o", "g"] [163.268722, "o", ":"] [163.330303, "o", "\r\n\u001b[?2004l\r"] [163.330415, "o", "\u001b[?2004h> "] [164.448647, "o", "\""] [164.542068, "o", "\r\n\u001b[?2004l\r"] [164.542204, "o", "\u001b[00m"] [164.542252, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [165.631513, "o", "s"] [165.720128, "o", "e"] [165.854656, "o", "d"] [165.943844, "o", " "] [166.003614, "o", "-"] [166.108624, "o", "i"] [166.174897, "o", " "] [166.282645, "o", "h"] [166.370617, "o", "a"] [166.468125, "o", "n"] [166.602296, "o", "o"] [166.691812, "o", "i"] [166.789402, "o", "."] [166.885038, "o", "s"] [167.055391, "o", "h"] [167.131046, "o", " "] [167.241827, "o", "-"] [167.340784, "o", "e"] [167.455255, "o", " "] [167.630603, "o", "'"] [167.694662, "o", "1"] [167.765234, "o", " "] [167.855763, "o", "s"] [167.935812, "o", "/"] [168.001026, "o", "b"] [168.094457, "o", "a"] [168.149149, "o", "s"] [168.25189, "o", "h"] [168.387663, "o", "."] [168.519931, "o", "*"] [168.64859, "o", "/"] [168.774704, "o", "b"] [168.893825, "o", "a"] [169.073038, "o", "s"] [169.142278, "o", "h"] [169.210751, "o", " "] [169.26669, "o", "-"] [169.3495, "o", "x"] [169.449438, "o", "/"] [169.565515, "o", "'"] [169.635361, "o", "\r\n\u001b[?2004l\r"] [169.635532, "o", "\u001b[00m"] [169.638636, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [170.767285, "o", "h"] [170.859271, "o", "e"] [170.942168, "o", "a"] [171.157299, "o", "d"] [171.341861, "o", " "] [171.399384, "o", "-"] [171.477872, "o", "1"] [171.643318, "o", " "] [171.776619, "o", "h"] [171.852204, "o", "a"] [171.990749, "o", "n"] [172.086331, "o", "o"] [172.156533, "o", "i"] [172.228374, "o", "."] [172.305928, "o", "s"] [172.461041, "o", "h"] [172.528129, "o", "\r\n\u001b[?2004l\r"] [172.528264, "o", "\u001b[00m"] [172.530012, "o", "#!/bin/bash -x\r\n"] [172.530372, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [173.528269, "o", "\r\n\u001b[?2004l\r"] [173.52842, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [174.596892, "o", "."] [174.709221, "o", "/"] [174.844558, "o", "h"] [174.901388, "o", "a"] [174.978283, "o", "n"] [175.159459, "o", "o"] [175.270387, "o", "i"] [175.330375, "o", "."] [175.408889, "o", "s"] [175.504062, "o", "h"] [175.556973, "o", " "] [175.696872, "o", "<"] [175.767139, "o", "<"] [175.875297, "o", "<"] [175.955934, "o", " "] [176.065907, "o", "1"] [176.172857, "o", "\r\n\u001b[?2004l\r"] [176.172986, "o", "\u001b[00m"] [176.175666, "o", "+ read -p 'Towers of Hanoi. How many disks? ' disks\r\n+ nr_moves=0\r\n+ solve_hanoi 1 src dst aux\r\n+ local disks=1 src=src dst=dst aux=aux\r\n"] [176.175736, "o", "+ (( disks > 0 ))\r\n+ solve_hanoi 0 src aux dst\r\n+ local disks=0 src=src dst=aux aux=dst\r\n+ (( disks > 0 ))\r\n+ echo 'move src --> dst'\r\nmove src --> dst\r\n+ (( nr_moves++ ))\r\n"] [176.175803, "o", "+ solve_hanoi 0 aux dst src\r\n+ local disks=0 src=aux dst=dst aux=src\r\n+ (( disks > 0 ))\r\n+ echo 'It took 1 moves to solve Towers for 1 disks.'\r\nIt took 1 moves to solve Towers for 1 disks.\r\n"] [176.176281, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [177.172902, "o", "\r\n\u001b[?2004l\r"] [177.173089, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [178.271063, "o", "."] [178.370824, "o", "/"] [178.421446, "o", "h"] [178.472846, "o", "a"] [178.6131, "o", "n"] [178.668788, "o", "o"] [178.794452, "o", "i"] [178.857695, "o", "."] [178.912711, "o", "s"] [178.970089, "o", "h"] [179.052677, "o", " "] [179.138483, "o", "<"] [179.209823, "o", "<"] [179.306787, "o", "<"] [179.38265, "o", " "] [179.475405, "o", "3"] [179.571363, "o", " "] [179.69515, "o", "2"] [179.756249, "o", ">"] [179.83241, "o", "&"] [179.926551, "o", "1"] [179.987705, "o", " "] [180.134631, "o", "|"] [180.195555, "o", " "] [180.304286, "o", "l"] [180.376228, "o", "e"] [180.512417, "o", "s"] [180.584146, "o", "s"] [180.670166, "o", "\r\n\u001b[?2004l\r"] [180.670309, "o", "\u001b[00m"] [180.670736, "o", "\u001b[00m"] [180.673685, "o", "\u001b[?1049h\u001b[22;0;0t\u001b[?1h\u001b=\r"] [180.673797, "o", "+ read -p 'Towers of Hanoi. How many disks? ' disks\r\n+ nr_moves=0\r\n+ solve_hanoi 3 src dst aux\r\n+ local disks=3 src=src dst=dst aux=aux\r\n+ (( disks > 0 ))\r\n+ solve_hanoi 2 src aux dst\r\n+ local disks=2 src=src dst=aux aux=dst\r\n+ (( disks > 0 ))\r\n+ solve_hanoi 1 src dst aux\r\n+ local disks=1 src=src dst=dst aux=aux\r\n+ (( disks > 0 ))\r\n+ solve_hanoi 0 src aux dst\r\n"] [180.673842, "o", "+ local disks=0 src=src dst=aux aux=dst\r\n+ (( disks > 0 ))\r\n+ echo 'move src --> dst'\r\nmove src --> dst\r\n+ (( nr_moves++ ))\r\n+ solve_hanoi 0 aux dst src\r\n+ local disks=0 src=aux dst=dst aux=src\r\n+ (( disks > 0 ))\r\n+ echo 'move src --> aux'\r\nmove src --> aux\r\n+ (( nr_moves++ ))\r\n:\u001b[K"] [181.720319, "o", "\u0007\r\u001b[K:\u001b[K\r\u001b[K"] [181.720445, "o", "+ solve_hanoi 1 dst aux src\r\n+ local disks=1 src=dst dst=aux aux=src\r\n+ (( disks > 0 ))\r\n+ solve_hanoi 0 dst src aux\r\n+ local disks=0 src=dst dst=src aux=aux\r\n+ (( disks > 0 ))\r\n+ echo 'move dst --> aux'\r\nmove dst --> aux\r\n+ (( nr_moves++ ))\r\n+ solve_hanoi 0 src aux dst\r\n+ local disks=0 src=src dst=aux aux=dst\r\n+ (( disks > 0 ))\r\n+ echo 'move src --> dst'\r\nmove src --> dst\r\n+ (( nr_moves++ ))\r\n+ solve_hanoi 2 aux dst src\r\n+ local disks=2 src=aux dst=dst aux=src\r\n+ (( disks > 0 ))\r\n+ solve_hanoi 1 aux src dst\r\n+ local disks=1 src=aux dst=src aux=dst\r\n+ (( disks > 0 ))\r\n+ solve_hanoi 0 aux dst src\r\n+ local disks=0 src=aux dst=dst aux=src\r\n:\u001b[K\u0007\r\u001b[K:\u001b[K"] [182.770589, "o", "\u0007\r\u001b[K:\u001b[K\r\u001b[K"] [182.770761, "o", "+ (( disks > 0 ))\r\n+ echo 'move aux --> src'\r\nmove aux --> src\r\n+ (( nr_moves++ ))\r\n+ solve_hanoi 0 dst src aux\r\n+ local disks=0 src=dst dst=src aux=aux\r\n+ (( disks > 0 ))\r\n+ echo 'move aux --> dst'\r\nmove aux --> dst\r\n+ (( nr_moves++ ))\r\n+ solve_hanoi 1 src dst aux\r\n+ local disks=1 src=src dst=dst aux=aux\r\n+ (( disks > 0 ))\r\n+ solve_hanoi 0 src aux dst\r\n+ local disks=0 src=src dst=aux aux=dst\r\n+ (( disks > 0 ))\r\n+ echo 'move src --> dst'\r\nmove src --> dst\r\n+ (( nr_moves++ ))\r\n+ solve_hanoi 0 aux dst src\r\n+ local disks=0 src=aux dst=dst aux=src\r\n+ (( disks > 0 ))\r\n+ echo 'It took 7 moves to solve Towers for 3 disks.'\r\n:\u001b[K\u0007\r\u001b[K:\u001b[K"] [183.820935, "o", "\r\u001b[K"] [183.821075, "o", "...skipping...\r\n+ echo 'move aux --> src'\r\nmove aux --> src\r\n+ (( nr_moves++ ))\r\n+ solve_hanoi 0 dst src aux\r\n+ local disks=0 src=dst dst=src aux=aux\r\n+ (( disks > 0 ))\r\n+ echo 'move aux --> dst'\r\nmove aux --> dst\r\n+ (( nr_moves++ ))\r\n+ solve_hanoi 1 src dst aux\r\n+ local disks=1 src=src dst=dst aux=aux\r\n+ (( disks > 0 ))\r\n+ solve_hanoi 0 src aux dst\r\n+ local disks=0 src=src dst=aux aux=dst\r\n+ (( disks > 0 ))\r\n+ echo 'move src --> dst'\r\nmove src --> dst\r\n+ (( nr_moves++ ))\r\n+ solve_hanoi 0 aux dst src\r\n+ local disks=0 src=aux dst=dst aux=src\r\n+ (( disks > 0 ))\r\n"] [183.821111, "o", "+ echo 'It took 7 moves to solve Towers for 3 disks.'\r\nIt took 7 moves to solve Towers for 3 disks.\r\n\u001b[7m(END)\u001b[27m\u001b[K"] [184.871496, "o", "\r\u001b[K\u001b[?1l\u001b>\u001b[?1049l\u001b[23;0;0t"] [184.872055, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [185.870956, "o", "\r\n\u001b[?2004l\r"] [185.87112, "o", "\u001b[?2004h\u001b[01;33muser1@linux-cli\u001b[00m:\u001b[01;34m~/15\u001b[00m$ \u001b[01;32m"] [186.871166, "o", "\u001b[?2004l\r\r\n"] [186.871238, "o", "logout\r\n"] [186.871389, "o", "\u001b[00m"]