Posts by JLUA • 43 points
2 posts
-
3
votes1
answer145
viewsQ: Return block-defined substring in Python on first occurrence
In python, I am trying to capture a block-defined substring, however the word "blocks" repeats in the text and I would like to get the substring up to the first occurrence of this. In this example…
-
1
votes3
answers73
viewsA: Remove specific line of files on linux
Could use grep in the form: grep -v "* * * * * root /home/linaro/funcao4.sh" /etc/crontab > /home/usuario/mycron mv /home/usuario/mycron > /etc/crontab