@Zanna So they want to be prompted with each filename and have the option either to delete the file without opening it first to look at it or open it to edit it without then being able to delete it?
I feel like that question is unclear. But it has an answer. The answer is upvoted. Other people besides me seem to know what is being asked for.
[Hmm... should we move the discusion of that question to the downboat? It seems downboaty now that it's no longer mainly about answering the question...]
I thought I could imagine what they wanted... open a file from the list so the user can examine it. User is done, closes the file, deletes the file's name from the list (not the file itself) or not based on what they found, then the next file opens, and repeat...
but that comment makes it seem like they are going to edit the list at the end or something, which would surely be cumbersome
@Zanna I should learn to use some scripting language's ncurses bindings, so that I can write scripts that create visual menus in the terminal, with scrollable lists and stuff.
Or maybe it would be a better idea for me to learn vimscript or Emacs Lisp, and write scripts that facilitate the same thing through the user's interaction with an open buffer.
I'm not sure how practical it is to make short scripts use ncurses. I was thinking of something that would solve that where the script's ncurses interface would show the list of files and allow them to be opened.
Of course, if they are all together in the same directory, then the OP can just use mc or possibly vim on the directory. I also wonder if mc could be used even if they're in different directories, if thee's a search pattern that would match just those paths.
as far as I know, I have never seen an example of it and I don't know what command might be used. People manage to do very clever things with h & x loops though