repo.or.cz
/
bash.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Patch-ID: bash40-021
[bash.git]
/
examples
/
scripts
/
spin.bash
blob
dc6a66aa5665608680a4a9411241808f50a49142
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