source:
vendor/bash/3.1-p17/examples/scripts/spin.bash
Last change on this file was 3228, checked in by , 18 years ago | |
---|---|
File size: 285 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | # |
3 | # spin.bash -- provide a `spinning wheel' to show progress |
4 | # |
5 | # Chet Ramey |
6 | # chet@po.cwru.edu |
7 | # |
8 | bs=$'\b' |
9 | |
10 | chars="|${bs} \\${bs} -${bs} /${bs}" |
11 | |
12 | # Infinite loop for demo. purposes |
13 | while : |
14 | do |
15 | for letter in $chars |
16 | do |
17 | echo -n ${letter} |
18 | done |
19 | done |
20 | |
21 | exit 0 |
Note:
See TracBrowser
for help on using the repository browser.