can anyone tell me how to bink a text in a ksh script
for e,g
file 1
#!/bin/ksh
"this is my file"
-----------------------------------------------
i want "this is my file" text to blink.thanks
I'm not at a UNIX box at the moment, so can't give details, but the "tput" command may do it for you.
u mean to say that i have set the command as
tput this is my file
still not getting
can u tell me how to use thid tput in the file
You could try:
while true;do clear;sleep 1;echo "This is my file";sleep1; done
This is an infinite loop so you have to set some conditions to get out of it
based upon your requirements.
HTH
its working.........but u i just need the text to be working
but its not coming out of looop
It sure is an infinite loop. The number of times your text should blink would be decided upon your requirements. I have made it blink infintely just to show
the concept. You can tweak it to your requirements.
enc.
actually i have a file called swap
echo "WElcome to SWAPPING Program"
while true
do clear
sleep 1
echo "this is my file"
sleep 1
done
function swap
{
temp=$a
a=$b
b=$temp
echo "The swapped values are"
echo $a "\t\c"
echo $b
}
echo "Enter the 1st number"
read a
echo "Enter the second number"
read b
swap
echo $swap
--------------------------------------------------------------------
but it is only showing the blink part...can u tell me that it should blink the text ""this is my file" and then i can execute the remaining prgm.it should blink as well as i can run the prgm
actually i have a file called swap
echo "WElcome to SWAPPING Program"
while true
do clear
sleep 1
echo "this is my file"
sleep 1
done
function swap
{
temp=$a
a=$b
b=$temp
echo "The swapped values are"
echo $a "\t\c"
echo $b
}
echo "Enter the 1st number"
read a
echo "Enter the second number"
read b
swap
echo $swap
--------------------------------------------------------------------
but it is only showing the blink part...can u tell me that it should blink the text ""this is my file" and then i can execute the remaining prgm.it should blink as well as i can run the prgm
You need to do some research on tput and terminfo
man tput
man terminfo
Search the Web for tput and terminfo