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?