Interesting Regular Expression Quiz

This is solved. Actually quite a few people immediately figured it out in Twitter and Plurk etc.

Something is very wrong here. What happened? Is sed buggy?


$ cat xxx.csv
113.941112252,22.2889218875
113.941063733,22.288921817
113.941160771,22.2889219579

$ sed 's/,/e,/; s/$/n/' xxx.csv
n13.941112252e,22.2889218875
n13.941063733e,22.288921817
n13.941160771e,22.2889219579

If nobody can solve this mystery in this weekend, one more hint will be provided in the coming Tuesday.

Tagged as • Categorized as Software

2 Responses

  1. Isaac says:

    DOS text file format :)

    • Abel says:

      That’s it. There are others who also got the answer in Plurk. Looks like I failed to deceive anybody :)

Leave a Reply

E-mail is not disclosed nor shared. Required fields are marked *