Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
create a file from data in multiple files/directories
#1
I have a bunch of log files and would like to extract the important lines of data using regex or something similar, and compile it in a csv with names of the parent folder.

The part I'm stuck with is this-how do I start?
How do I create the folder selection menu?
How do I create a new file to write to?
how do I go through each folder file-by-file and line-by-line and only copy the lines that match the criteria ?
How do I get the name of the parent folder?
How do I make sure that it doesn't get stuck? (are there any ways to multi/green thread the function if there are too many files)

I'll be spending some time on the manual in the future to figure this out so while I don't expect any help, it's greatly appreciated.

(Looks like you can't have a powerful tool and have it be quick+easy to learn at the same time.)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)