Ticket #1625: expect-test.sh
File expect-test.sh, 302 bytes (added by , 18 years ago) |
---|
Line | |
---|---|
1 | #!/bin/sh |
2 | |
3 | if [ $# -ne 1 ]; then |
4 | echo "Number of lines to output must be given"; |
5 | exit 1; |
6 | fi; |
7 | |
8 | lines=$1; |
9 | |
10 | > expect.test; |
11 | |
12 | for ((i=1;i<=$lines;i++)); do |
13 | echo "$i: 0123456789abdecf0123456789abdecf0123456789abdecf0123456789abdecf" >> expect.test; |
14 | done; |
15 | |
16 | expect -c 'spawn cat expect.test; expect'; |