code.fastix.org

Dateiansicht:

Datei:Projekte -> Linux,Shell: Running Pengu (ASCII-Art) -> pengu.sh
md5:bcf061707e189c7cabd09776790829b5
sha1:bcf4ed1a208be4f2aa9cbe6aa573f151fcbc0d41
Download-Link:Download
  1. #!/bin/bash
  2. export TZ="Europe/Berlin"
  3. if [ -n "${1}" ]; then
  4.         if [ "${1}" = "dance" ]; then
  5.                 export steps="dance";
  6.                 export time="";
  7.         else
  8.                 export time="${1}";
  9.         fi
  10. else
  11.         export time="";
  12. fi
  13. shift;
  14. if [ -n "${1}" ]; then
  15.         export steps="${1}";
  16.         ts=1;
  17. else
  18.         export steps="dance";
  19.         ts=".5"
  20. fi
  21.  
  22.  
  23.  
  24. watch --no-color -w -t -n $ts  pengu.run
  25.