Hello!
I believe that Jefferson Quesado referred to asterisks. That is, rewriting
sed '/0 1 \* \* \* root shutdown -r +1/g' [arquivo-de-entrada] > [arquivo-de-saída]
The backslash in this case indicates that the next metacharacter, which is nothing more than a character with some property distinct from the others, should be interpreted as a normal. But it can also assign alternative function to a common character, as in the case of new lines, usually represented by \n
.
In most cases the metaproperty of the *
makes your comparison with any character result in coincidence and therefore I suppose that the result obtained has included all lines and not only the expected.
By your posting date, I hope you have at least found an alternative solution long ago. In any case, I hope to help those who pass through here.
You didn’t escape the metacharacters in the search expression
– Jefferson Quesado
would be like ? what is meta character
– Jasar Orion