I am interested in editing multiple files. Using this answer:
How to edit files non-interactively (e.g. in pipeline)?
I came up with my own test case:
seq 10 14 | tee pa.txt > qu.txt
ex -sc 'argdo %s/1/Z/ge|x' *.txt
However when I run the Ex command, the terminal just hangs, it does not complete
the command. If I remove the -s, the command still hangs with this output:
"pa.txt" 5 lines, 15 characters
Entering Ex mode. Type "visual" to go to Normal mode.
:
-sof your second command, if you are trying to debug something the silent mode isn't helping. Thenman exsays that you need to put double quote around your command if it contains spaces so you should also change that. Once it is done you can give us what vim says and it will probably be easier to help you :-) – statox Apr 15 '16 at 07:46exis actually Vim. If it is actuallyex(say, from ex-vi), I get an error aboutargdoandexwaits around for me to enter commands. – muru Apr 15 '16 at 08:29ex --versionsay? – muru Apr 15 '16 at 18:43