C
CountryLover
First off, I know next to nothing about Perl, other than a few scripts that I
have used (written by others).
A project that I am working on requires the following steps:
1. Parse a directory containing text files, potentially thousands
2. Open each text file and read in the first 25 lines or so
3. Write these lines to a temporary file
4. Delete each original file & replace with the temp file, using same filename
5. Parse the truncated files and find a specific keyword
6. Create directories based on the value of the keywords found
7. Move the truncated files to their respective directories.
8. Optionally, create a log file of all operations
Is this something that Perl could be persuaded to do?
Any suggestions or code snippets would be much appreciated!
have used (written by others).
A project that I am working on requires the following steps:
1. Parse a directory containing text files, potentially thousands
2. Open each text file and read in the first 25 lines or so
3. Write these lines to a temporary file
4. Delete each original file & replace with the temp file, using same filename
5. Parse the truncated files and find a specific keyword
6. Create directories based on the value of the keywords found
7. Move the truncated files to their respective directories.
8. Optionally, create a log file of all operations
Is this something that Perl could be persuaded to do?
Any suggestions or code snippets would be much appreciated!