my script should search for a file but it show nothing, here is the code from the 1. file:
#!/bin/bash
if [ "$1" == "" ]
then
echo "search [options] file"
else
/bin/search-help $1
fi
this is the code from the 2. file:
#!/bin/bash
find / -type d \( -path /proc -o -path */lost+found \) -prune -false -o -name '$1' &
PID=$!
i=1
sp="/-\|"
printf "scanning "
while [ -d /proc/$PID ]
do
printf "\b${sp:i++%${#sp}:1}"
sleep 0.1
done