Shell Scripts





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Free Shell Scripts
List All
Rename File
Rename Multiple Files
Remove Files From Folder
Fun Dancing Script
Dancing Move
FTP Login Report
Netstats

 





outsourced web hosting support

Cursor / Pointer Dancing Move Fun Script


About
A fun script when executed creates a dancing movement effect of the cursor in the command promt.


Features
a) Fun script written using shell.
b) Gives a dancing move effect on the pointer.
c) Simply execute the file to have the cursor effect.

Code
#------------------  Script by hscripts.com    ------------------#
#-----------------   Copywrite of HIOXINDIA    ------------------#
#--------------  More scripts @www.hscripts.com   ---------------#

#!/bin/sh

var1=$1

count=20000

#stime=`date +%s`
jj=0
strpos=0
strpos2=0
totc=`echo $var1|wc -c`
echo -e '                     \c'
for (( i = 0 ; i <= $count; i++ ))
do

	cc=`echo $i%4 | bc`

	if [ $cc == 0 ]
	then
	  echo -e '\b|\c'
	elif [ $cc == 1 ]
	then 
	 echo -e '\b/\c'
	elif [ $cc == 2 ]
	then 
	 echo -e '\b-\c'
	else [ $cc == 3 ]
	 echo -e '\b\\\c'
	fi
	
	jj=`expr $jj + 1`
	
	#etime=`date +%s`

	#diff=`echo $etime-$stime|bc`
	#diff=`expr $diff + 1`
	#echo $diff
	
	if (( $jj == 50 ))
	then
		if (( $totc >= $strpos ))
		then
			echo -e '\b\c'
			echo -e ${var1:$strpos:1}+'\c'
			strpos=`expr $strpos + 1`
			strpos2=$strpos
		elif (( $strpos2 > 0 ))
		then
			echo -e '\b \c'
			strpos2=`expr $strpos2 - 1`
			echo -e '\b\c'i
		elif (( $strpos2 == 0 ))
		then
			strpos=0
		fi
		
		jj=0
	fi

done
#------------ Script by hscripts.com -------------------------#

Release Date - 06-04-2010
Get free version without ©copyright link for just 5 price

For customization of this script or any script development, contact us at support@hscripts.com



Usage
a) Copy the above code and save it with .sh extension
b) Execute the sh file in command line.
c) Have fun executing the shell script as sh filename.sh.
d) Find the cursor pointer moving with dancing effect on the screen.


License
- The Unix Shell Scripts and examples is given under GPL License
- i.e. Free use for those who use it as it is.
- Free, if your modification does not remove our copyright information and links.
- For Detailed License information Click here
- If your requirements does not meet GPL License terms, you can purchase the script with us.
Other Links

web hosting