I'm using the following statement in a bash script to iterate through the results of find:
find ./ -type f \( -iname \*.mkv -o -iname \*.mp4 \) | while read line; do
Now the problem is I can't ask for user input using "read" in this loop as it will give me the next line from the the find results.
read mainmenuinput
will give me the next filename instead of waiting for user input.
How can I work around this?
Thanks, rayfun
read
.