I'm actually looking for a bash script who monitor a file, execute each new line in the file and then remove the line. When all the file is processed, the script mush wait for new lines.
I searched for any answers but barely found anything more than reading each line in a file.
By the way, is bash efficient at a task like this or should I build a little C program to do this?