I need to remove a particular line in a file crontab
ex:
* * * * * root /home/linaro/funcao1.sh
* * * * * root /home/linaro/funcao3.sh
* * * * * root /home/linaro/funcao4.sh
* * * * * root /home/linaro/funcao5.sh
I would like to delete the line
* * * * * root /home/linaro/funcao4.sh
Remembering that this file is not in crontab
it will be imported according to the script
I tried to use sed
but my deficiency in regular expressions did not allow me to make it work
sed '* * * * * root /home/linaro/funcao4.sh' /home/linaro/mycron.txt