source: vendor/bash/3.1-p17/examples/scripts/spin.bash

Last change on this file was 3228, checked in by bird, 18 years ago

bash 3.1

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#
8bs=$'\b'
9
10chars="|${bs} \\${bs} -${bs} /${bs}"
11
12# Infinite loop for demo. purposes
13while :
14do
15 for letter in $chars
16 do
17 echo -n ${letter}
18 done
19done
20
21exit 0
Note: See TracBrowser for help on using the repository browser.