Aloha,
nebesigalvoja.
bandau paremontuoti paštą paprastuotju būdu. Man reikia, jog vietoje 'application/octec-string' būtų 'application/acad'.
sed -e 's|'"${found}"'|'"${new_string}"'|' ${path}${file}
ir sed'as nepatenkintas, nes galutinė eilutė tai tokia:
sed -e s|Content-Type: application/octet-stream; name="Isklotines_0205.dwg"
Content-Disposition: attachment; filename="Isklotines_0205.dwg"|Content-Type: application/acad; name="Isklotines_0205.dwg"
Content-Disposition: attachment; filename="Isklotines_0205.dwg"| /opt/mail/vhosts/ten.pat/gze/Maildir/cur/1675622027.Vca51I48bc5M165852.ip-172-26-2-119:2,RS
Kaip priversti jį ignoruoti "\n" tarp name="" ir 'Content-Disposition:...', kurie ateina iš failo?
--
Grzegorz
Chrząszczyrzewoszyce, powiat Łękołody