The sed works fine and is not a problem.  The only problem with the script is with: alias update_makefiles 'string'

It's just that the string part is too long for csh [ https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg16028.html ].

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:

https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18738.html

https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18731.html

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 [ https://unix.stackexchange.com/questions/68042/double-and-triple-substitution-in-bash-and-zsh ].

Or tcsh could be used that has a larger maximum length for the string:

https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg18730.html


On 6/16/2019 2:52 AM, pboulet wrote:
Hello all,

If I understand correctly, sed is the main problem. So, isn’t there an alternative to sed? (e.g. awk, perl, python,…).

Best regards,
Pascal



Pascal Boulet
—
/Professor in computational chemistry - DEPARTMENT OF CHEMISTRY/
Aix-Marseille University - Avenue Escadrille Normandie Niemen - F-13013 Marseille - FRANCE
Tél: +33(0)4 13 55 18 10 - Fax : +33(0)4 13 55 18 50
Email : pascal.bou...@univ-amu.fr <mailto:pascal.bou...@univ-amu.fr>

_______________________________________________
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:  
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html

Reply via email to