<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>The sed works fine and is not a problem. The only problem with
the script is with: alias update_makefiles 'string'<br>
</p>
<p>It's just that the string part is too long for csh [
<a class="moz-txt-link-freetext" href="https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg16028.html">https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg16028.html</a>
].<br>
</p>
<p>Which is why if you shorten the string, for example split it into
two alias (like update_makefiles01 and update_makefiles02), then
the script works fine:<br>
</p>
<p><a class="moz-txt-link-freetext" href="https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18738.html">https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18738.html</a></p>
<p><a class="moz-txt-link-freetext" href="https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18731.html">https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18731.html</a></p>
<p>Note: The for loop pseudo code in msg18738 I realize I have a
mistake were multiple substitutions likely would have to be worked
out too [
<a class="moz-txt-link-freetext" href="https://unix.stackexchange.com/questions/68042/double-and-triple-substitution-in-bash-and-zsh">https://unix.stackexchange.com/questions/68042/double-and-triple-substitution-in-bash-and-zsh</a>
].<br>
</p>
<p>Or tcsh could be used that has a larger maximum length for the
string:</p>
<p><a class="moz-txt-link-freetext" href="https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18730.html">https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18730.html</a><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 6/16/2019 2:52 AM, pboulet wrote:<br>
</div>
<blockquote type="cite"
cite="mid:F9729BAB-C33F-42E4-B617-931FB6BD9B5E@univ-amu.fr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Hello all,
<div class=""><br class="">
</div>
<div class="">If I understand correctly, sed is the main problem.
So, isn’t there an alternative to sed? (e.g. awk, perl,
python,…).</div>
<div class=""><br class="">
</div>
<div class="">Best regards,</div>
<div class="">Pascal</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0); letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none; word-wrap: break-word;
-webkit-nbsp-mode: space; line-break: after-white-space;"
class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0); letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
text-decoration: none; word-wrap: break-word;
-webkit-nbsp-mode: space; line-break: after-white-space;"
class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0); letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width:
0px; text-decoration: none; word-wrap: break-word;
-webkit-nbsp-mode: space; line-break:
after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color:
rgb(0, 0, 0); letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-decoration: none;
word-wrap: break-word; -webkit-nbsp-mode: space;
line-break: after-white-space;" class="">
<div dir="auto" style="text-align: start; text-indent:
0px; word-wrap: break-word; -webkit-nbsp-mode:
space; line-break: after-white-space;" class="">
<div class="" style="caret-color: rgb(0, 0, 0);
color: rgb(0, 0, 0); letter-spacing: normal;
text-transform: none; white-space: normal;
word-spacing: 0px; text-decoration: none;
-webkit-text-stroke-width: 0px;"><span class=""
style="font-size: 16pt; font-family: Mistral;">Pascal
Boulet</span></div>
<div class="" style="caret-color: rgb(0, 0, 0);
color: rgb(0, 0, 0); letter-spacing: normal;
text-transform: none; white-space: normal;
word-spacing: 0px; text-decoration: none;
-webkit-text-stroke-width: 0px;"><font class=""
face="Lucida Handwriting"><span class=""
style="font-size: 21px;">—</span></font></div>
<div class="" style="caret-color: rgb(0, 0, 0);
color: rgb(0, 0, 0); letter-spacing: normal;
text-transform: none; white-space: normal;
word-spacing: 0px; text-decoration: none;
-webkit-text-stroke-width: 0px;"><em class=""
style="color: rgb(34, 187, 234); font-family:
verdana; font-size: 11px; line-height: 22px;">Professor
in computational chemistry - DEPARTMENT OF
CHEMISTRY</em></div>
<div class="">
<div class="" style="caret-color: rgb(0, 0, 0);
color: rgb(0, 0, 0); letter-spacing: normal;
text-transform: none; white-space: normal;
word-spacing: 0px; text-decoration: none;
-webkit-text-stroke-width: 0px; font-family:
Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 15px; line-height: 22px;"><span
class="" style="font-size: 11px; font-family:
verdana;">Aix-Marseille University </span><span
class="" style="font-size: 11px; font-family:
verdana;">- Avenue Escadrille Normandie Niemen
- F-13013 Marseille - FRANCE</span></div>
<div class="" style="caret-color: rgb(0, 0, 0);
color: rgb(0, 0, 0); letter-spacing: normal;
text-transform: none; white-space: normal;
word-spacing: 0px; text-decoration: none;
-webkit-text-stroke-width: 0px; font-family:
Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 15px; line-height: 22px;"><span
class="" style="font-size: 11px; font-family:
verdana;">Tél: +33(0)4 13 55 18 10 - Fax :
+33(0)4 13 55 18 50</span></div>
<div class="" style="caret-color: rgb(0, 0, 0);
color: rgb(0, 0, 0); letter-spacing: normal;
text-transform: none; white-space: normal;
word-spacing: 0px; text-decoration: none;
-webkit-text-stroke-width: 0px;"><font class=""
face="verdana"><span class=""
style="font-size: 12px; line-height: 22px;">Email : </span></font><font
class="" face="verdana" color="#22bbea"><span
style="font-size: 12px; line-height: 20px;"
class=""><a
href="mailto:pascal.boulet@univ-amu.fr"
class="" moz-do-not-send="true">pascal.boulet@univ-amu.fr</a></span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<blockquote type="cite"
cite="mid:F9729BAB-C33F-42E4-B617-931FB6BD9B5E@univ-amu.fr">
</blockquote>
</body>
</html>