Ehehe ačiū
Laimis wrote on 28 03 2023 15.53:
> Rokas rašė:
>> labiau sed -e 's/Content-Type: application\/octet-stream/Content-Type:
>> application\/acad/'
>> ..arba nesigaudau ir s taip pat priima '|' kas įprastai unixe yra pipes
> > Problema ne tame; sed'as vietoje separator gali priimti bet kokius
> simbolius:
> > „The / characters may be uniformly replaced by any other single
> character within any given s command. The / character (or whatever other
> character is used in its stead) can appear in the regexp or replacement
> only if it is preceded by a \ character.“
> > > $ echo "Ežiukas rūke" | sed -e 's#rūke#rūkė#'
> Ežiukas rūkė
> $ echo "Ežiukas rūke" | sed -e 's{rūke{rūkė{'
> Ežiukas rūkė
> $ echo "Ežiukas rūke" | sed -e 's|rūke|rūkė|'
> Ežiukas rūkė
> $ echo "Ežiukas rūke" | sed -e 's~rūke~rūkė~'
> Ežiukas rūkė
> <...>
> >