Hi,
Something like this maybe:
Code:
#!/bin/sh
sleep 10 &
pid=$!
printf "Processing |"
rotate='|/-\'
while kill -n 0 $pid 2>/dev/null; do
rotate="${rotate#?}${rotate%???}"
printf '\b%.1s' "$rotate"
sleep 1
done
echo ''
wait $pid
echo "All done"
Hope this gets you going again.