Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 2
    Is it the shortest prefix or the longest one? In other words, if there are two temp-aaa-* and three temp-bbb-* files, should it move the three temp-bbb-* files and leave alone the two temp-aaa-* or should it move the five temp-* files? Or is it just a matter of dropping the final digits (which is likely a lot simpler)? Commented Nov 15, 2017 at 21:21
  • 1
    If I'm understanding you correctly then I'd like it to just drop the final parts that are in disagreement. For example if I had files named grc-wget-errors-20171115-004503.log and grc-wget-errors-20171115-005503.log it would then create a directory grc-wget-errors and move both of those files in. Does that make sense? Commented Nov 15, 2017 at 21:37
  • 2
    Still ambiguous. If I have log-09, log-10, log-11, log-12, do I move the log-1* files only or do I move all the log-* ones? Commented Nov 15, 2017 at 21:45
  • Are you allowing the user to supply the prefixes as a list of arguments, or is the program supposed to determine the prefixes itself based on the filenames in the given directory? Commented Nov 16, 2017 at 7:01
  • @xenoid, it should move all the log-* ones. Commented Nov 16, 2017 at 15:02