Sure.
m[ ^ # From the start of the record ( # capture [^|]+ # everything that is not a pipe char ) \| # upto but excluding the first pipe char ]x
In essence, grab the first field of a pipe delimited record into $1.
Assumes that that field doesn't contain an escaped or quoted pipe character. Which is the normal case.
In reply to Re^3: how to find differences between two huge files
by BrowserUk
in thread how to find differences between two huge files
by sayeevamsi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |