4 ms·
Then pipe through perl -pe 's/\\\n//g' Before grepping
by moonchild 6y ago
Then pipe through
perl -pe 's/\\\n//g'
Before grepping
- wool_gather 6y agoTurning the entire file into a single line really doesn't seem like a solution. Now foo(1, bar, false) print("Hello, world") flag = true shows up in your grep output, and not in a particularly helpful rendering.
- moonchild 6y agoNo? That just merges continuation lines. So if your original file is foo(1, \ bar, \ false) print("Hello, world") flag = \ true Then the postprocessed output is: foo(1, bar, false) print("Hello, world") flag = true And your grep output is just foo(1, bar, false)
- wool_gather 6y agoSorry, what language are we talking about that has escaped line continuations for expressions like that?
- moonchild 6y agoC