On 03.04.2019 09:54, Kenny McCormack wrote:
> In article <q81o33$1im$
1...@news-1.m-online.net>,
> Janis Papanagnou <
janis_pa...@hotmail.com> made an obvious comment:
>> On 03.04.2019 03:43, Lew Pitcher wrote:
>>>
bubunia...@gmail.com wrote:
>>>
>>>> Sorry for not clarifying in my qs There are special characters like = etc
>>>> in the strings. The string is a base64 encoded string to be specific.
>>>
>>> And, thus, may contain a '/' character. Please note that the '/' is the
>>> character that sed(1) uses to separate the regex string from the
>>> replacement string in the 's' command.
>>
>> Since sed accepts other characters as separator just use something
>> different from '/', e.g. sed 's|/path/file|/otherpath/newname|g'
>> to avoid all the escapes.
>
> Yeah, but the problem is that you have to pick something that is guaranteed
> not to occur in your string(s), and it isn't always possible to do that.
With that feature you have at least many options. In this case they spoke