GNU sed does not have support for lookaround assertions. You could use a more powerful language such as Perl or possibly experiment with ssed which supports Perl-style regular expressions.
I am using egrep -R followed by a regular expression containing about 10 unions, so like:
.jpg | .png | .gif etc. This works well, now I would like to replace all strings found with .bmp
I was thinking of something like
egrep …
I want to count the number of matches there is on one single line (or all lines as there always will be only one line).
I want to count not just one match per line as in
echo "123 123 123" | grep -c …
I want to do a substitution based on a wildcard. For example, change all "tenure" to "disposition" only if the word "tenure" comes after an '=' sign. Basically a regex that would match this =.*tenure
The sed command that …