source:
trunk/processi.sh@
10
Last change on this file since 10 was 2, checked in by , 14 years ago | |
---|---|
|
|
File size: 166 bytes |
Line | |
---|---|
1 | #! /bin/bash |
2 | |
3 | function p1(){ |
4 | for i in $(seq 1 10); do |
5 | echo $i |
6 | done |
7 | } |
8 | |
9 | function p2(){ |
10 | for i in $(seq 11 20); do |
11 | echo $i |
12 | done |
13 | } |
14 | |
15 | p1 & p2 & |
16 | wait %1 %2 |
Note:
See TracBrowser
for help on using the repository browser.