1
I work with a lot of flat files that are pipe delimited, and look something like:
John|Smith|01|01|1901|123 Road
Is there a way to find out that '1901' is the 5th field of this record based on the pipes ('|')?
This would be so incredibly useful and save me from having to count fields on massive files.
You can use PowerShell for this, give it a try and do some research with doing this with PowerShell and RegEx. Look into
Get-Content
and look at the-Replace "<RegEx>", "<RegEx>"
and pipe that over to aSet-Content
. You'd want the regex to get everything after the 4th pipe delimiter but before the 5th so everything between those but not including. Just a quick idea without research and based on vague memory with a scripted process I've written in the past. – Pimp Juice IT – 2017-05-12T19:52:36.670No problem, did you find a suitable solution? – Pimp Juice IT – 2017-05-15T15:32:31.760