while loop

All,

while read input
do
echo "hai"
cat file.txt
done < path_file/file.txt #//file.txt contain 5 lines.

After this script's first execution I want to give some delay without using sleep command for executing next line of file.txt.

-Smoorthy

wondering why you dont want to use sleep - after all, that is what it is there for.

Apart from the fact that your script doesn't execute any lines from the file, why would you not use sleep? That's what it is for.

b'cause Dont know how much time it will take to execute and complete per command example: if we use wget *.com means .