CodexK2
asked on
Parse Text
I need to recursively parse all files in a folder and return the values that are present to the right of the text found within.
The text within is always the same:
ram Files\Queue\textfile.txt
I need to get a result set containing the:
file name searched
textfile.txt values within each found file
Thanks!
The text within is always the same:
ram Files\Queue\textfile.txt
I need to get a result set containing the:
file name searched
textfile.txt values within each found file
Thanks!
Could you describe your problem more precisely? With some examples.
find different filetypes example:
Get-ChildItem C:\PSTest\ -Recurse -include *.txt, *.exe, *.ini
Read file:
get-content textfile.txt
Get-ChildItem C:\PSTest\ -Recurse -include *.txt, *.exe, *.ini
Read file:
get-content textfile.txt
ASKER
Thank you - I know how to recursively look for files within a folder (and search for strings within these files).
What I need help with is searching within each and every file within a given folder for this text:
Files\Queue\textfile.txt
...and then only returning the value found to the right of 'Files\Queue'
So...in the example above the value returned would be:
'textfile.txt'
Ideally the result set will output the name of the file and the values found.
What I need help with is searching within each and every file within a given folder for this text:
Files\Queue\textfile.txt
...and then only returning the value found to the right of 'Files\Queue'
So...in the example above the value returned would be:
'textfile.txt'
Ideally the result set will output the name of the file and the values found.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Works like a Champ - thank you very much!!