Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
L~# L~# cat ./test.dash#!/bin/basha=$(seq 1 1000)for i in $adoecho "$a" >/tmp/test.ddoneL~# L~# time ./test.dashreal 0m3.159suser 0m1.068ssys 0m2.064sL~#
L~# L~# cat ./test.dash#!/bin/dasha=$(seq 1 1000)for i in $adoecho "$a" >/tmp/test.ddoneL~# L~# time ./test.dashreal 0m0.365suser 0m0.100ssys 0m0.220sL~# L~#
~$ cat 1.txt #!/bin/dashi=$(seq 1 1000)for a in $idoecho "$a" > 2.txtdone~$ time ./1.txt real 0m0.304suser 0m0.000ssys 0m0.104s
~$ cat 1.txt #!/bin/bashfor a in {1..1000}doecho "$a" > 2.txtdone~$ time ./1.txt real 0m0.324suser 0m0.028ssys 0m0.096s
echo {1..1000} > 2.txt
должноКод: [Выделить]echo {1..1000} > 2.txt
~$ cat 1.txt #!/bin/bashi=$(echo {1..1000})for a in $idoecho "$i" > 2.txtdone~$ time ./1.txt real 0m0.367suser 0m0.188ssys 0m0.140s~$ cat 1.txt #!/bin/dashi=$(seq 1 1000)for a in $idoecho "$i" > 2.txtdone~$ time ./1.txt real 0m0.379suser 0m0.072ssys 0m0.068s
Страница сгенерирована за 0.043 секунд. Запросов: 25.