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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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