79370730

Date: 2025-01-20 08:53:49
Score: 0.5
Natty:
Report link

Powershell's -replace supports lookaheads:

(Get-Content -Raw file.tsv) -replace '(?<=\t)\\N(?=\t)','' | Set-Content file.tsv

It removes \N from empty tsv cells for 900mb file in 7s. But beware of possibly converted line breaks.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Podbrushkin