Good day!
I'd really appreciate help from someone who is more experienced than I am.
Problem:
- I have around 500 .txt files in one folder. I need to write the script to open each file. Then go through the text and look for specific words. For example if it has "test" or "password" in it. If it does or doesn't, script has to write true or false in another .txt file(same file for all 500 files). Then it has to close file and go on to the next one, until the output file would have the list of true and false statements for all 500 files.
That information I would use to create a spreadsheet, that's why it would be perfect if outputs for each file would be separated by commas so they can be converted into the columns in excel.
I'm particularly interested in the script that goes trough the files in the folder and searches for specific word and writes into other file.
Thank you for your help!
I'd really appreciate help from someone who is more experienced than I am.
Problem:
- I have around 500 .txt files in one folder. I need to write the script to open each file. Then go through the text and look for specific words. For example if it has "test" or "password" in it. If it does or doesn't, script has to write true or false in another .txt file(same file for all 500 files). Then it has to close file and go on to the next one, until the output file would have the list of true and false statements for all 500 files.
That information I would use to create a spreadsheet, that's why it would be perfect if outputs for each file would be separated by commas so they can be converted into the columns in excel.
I'm particularly interested in the script that goes trough the files in the folder and searches for specific word and writes into other file.
Thank you for your help!