title: Spinner Animation and echo command
body: <p>This is a part of my bash file. The output I need is:</p>
  
  <p><strong>[ - ] Copyright of KatworX© Tech. Developed by Arjun Singh Kathait and Debugged by the ☆Stack Overflow Community☆</strong></p>
  
  <p>I want the spinner animation to continue spinning for 5 seconds while the echo command is being displayed. Can the community help???</p>
  
  <pre><code>spinner()
      {
          local pid=$!
          local delay=0.75
          local spinstr='|/-\'
          while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
              local temp=${spinstr#?}
              printf " [%c]  " "$spinstr"
              local spinstr=$temp${spinstr%"$temp"}
              sleep $delay
              printf "\b\b\b\b\b\b"
          done
      }
  
           sleep 5 &amp; spinner | echo -e "\nCopyright of KatworX© Tech. Developed by Arjun Singh Kathait and Debugged by the ☆Stack Overflow Community☆"
  </code></pre>