[Omaha.pm] Gotta love perl...

Jay Hannah jhannah at omnihotels.com
Thu Feb 12 05:47:46 PST 2009


What? My 4 seconds of QA were insufficient?   :)

Try something like this?

$ perl -pi -e 's/\|\|[^ -~](\d\d:\d\d)/\|\|\n$1/g' j

j



On 2/12/09 7:42 AM, "Sean Baker" wrote:

> It would be even better if it worked...  J
> 
> I don¹t think this is working as you intended, or it doesn¹t for me:
>  
> $ perl -pi -e 's/\|\|[^ -~]\d\d:\d\d/\n/g' j
>   
> The regex seems to be corrupting the timestamp.  Look at the beginning of each
> line after you run it.
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20090212/a9c840b7/attachment.html>


More information about the Omaha-pm mailing list