Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Delete last occurrence of a string in a file

$
0
0

Hi,

I'm using PS to generate some SQL files, a bunch of them being multi-table inserts. How would I delete the last occurrence of UNION ALL in my files?

Thanks


Viewing all articles
Browse latest Browse all 6937

Trending Articles