SED in linux does not work

0

Good afternoon, I'm having trouble deleting a line in my crontab using sed.

My line is this:

0 1 * * * root shutdown -r +1

My thirst that does not work:

sed '/0 1 * * * root shutdown -r +1/g' /etc/crontab  > /home/linaro/mycron

I made a test by putting a test word and creating a sed

sed '/teste/g' /home/linaro/mycron  > /home/linaro/mycron

and so it worked. Can someone help me with this?

    
asked by anonymous 05.12.2018 / 17:10

0 answers