Answer the question
In order to leave comments, you need to log in
How to force sed to search not from the beginning of a line with '*' quantifier?
Given:
# echo 'abcd' | sed -e 's/a*//'
bcd (as expected)
# echo 'abcd' | sed -e 's/b*//'
abcd (why?!!)
How to rewrite the expression to get acd in the second case?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question