#!/bin/sh
while :; do
  for f in / - \\ \|; 
  do printf '%s\b' "$f"
  sleep 0.1
done 
done 

