in reply to find strings in multiple files, then move files to folders that match string name

You may be feeling underwhelmed by the extent and depth of the response you have had so far. It's not that we don't want to help, but that we want to see some effort from you first. We would much rather help sort out the most trivial or horrible code than just hand you an answer.

Yes, we do understand how hard it is to know where to start with something like this. A way to get a handle on what you need to do is to work through a process by hand and take note of what you did. Then sketch out a program that follows those manual steps. By "sketch" I mean, write the program putting comments in for stuff you don't know how to do yet, but at least show loops and decision points so the flow of the code is sketched in.

Once you have done that, post here again and we will help sort out the areas that are giving you grief.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
  • Comment on Re: find strings in multiple files, then move files to folders that match string name