Here is a use I though of for it....
Code:
#!/bin/bash
search ()
{
delay1='sleep .08'
wipescreen='echo -ne \b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b'
echo -ne "| ";$delay1;$wipescreen
echo -ne "/ ";$delay1;$wipescreen
echo -ne "- ";$delay1;$wipescreen
echo -ne "\ ";$delay1;$wipescreen
echo -ne "| ";$delay1;$wipescreen
echo -ne "/ ";$delay1;$wipescreen
echo -ne "- ";$delay1;$wipescreen
echo -ne "\ ";$delay1;$wipescreen
echo -ne "| ";$delay1;$wipescreen
echo -ne "";$delay1;$wipescreen
}
echo "Please wait while the computer searches for the file... "
search
locate $1
It the little spinny thing you see on most linux installers...
Ok, I have though of a use for this little function but can anyone tell me if you can use
if to see if a certain script or file is running...
[mod] Split from other topic as it had started to stray from the original post[/mod]