« first day (221 days earlier)      last day (2178 days later) » 

10:19 AM
@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?
 
since this comment, I am completely confused
 
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
 
 
2 hours later…
12:49 PM
@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.
 
that would be awesome sauce
speaking of sauce... I think it's time to cook
 
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.
 
 
2 hours later…
2:37 PM
either way would be excellent...
 
3:33 PM
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.
 
 
1 hour later…
5:02 PM
I doubt very much you can make sed do that
1 message moved from Raiders of the Lost Downboat
 
Yeah, you're right. Edited.
In the regex dialect used in GNU sed, is it possible to match something whose length is equal to the length of text captured in a backreference?
 
5:22 PM
it may be, but I do not know how to do that.
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
 

« first day (221 days earlier)      last day (2178 days later) »