[Omaha.pm] Gotta love perl...
Jay Hannah
jhannah at omnihotels.com
Wed Feb 11 14:00:09 PST 2009
$ head -100 Bookrq_Trace_2009-02-09_1.txt > j
$ perl -pi -e 's/\r\n//g' j
$ perl -pi -e 's/\|\|[^ -~]\d\d:\d\d/\n/g' j
Another 5 minute assault on a multi-GB Windows file with funky delimiters...
Laugh,
j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20090211/0df780ff/attachment.html>
More information about the Omaha-pm
mailing list