re: What's your spookiest coding story? VIEW POST

FULL DISCUSSION
 

I wanted to filter content from config file (XML) of a production service (the payment gateway of an online store). So I did:

$ grep <Service name="service"> server.xml

Terminal behaves odd and I wonder why... Then I realized I had overridden the content of server.xml because I didn't use quotes correctly. Of course, no backup. Fortunately, before grepping, I did cat so the backup was living in my current terminal session. That was my first official day as sysadmin

code of conduct - report abuse