Questions tagged [ex]
For questions pertaining the ex utility, a line-oriented text editor first developed by Bill Joy in 1976. The ex editor was later extended with a "visual mode", which turned into the vi screen editor. Use this tag for questions about ex itself, using ex, or questions about issues arising from the usage of utility itself.
14 questions
3 votes
1 answer
63 views
Fast question about -S option of ex
On Solaris 10 ex -h ex: illegal option -- h Usage: ex [- | -s] [-l] [-L] [-wn] [-R] [-S] [-r [file]] [-t tag] [-v] [-V] [-x] [-C] [+cmd | -c cmd] file... I see a "-S" option what does it ...
0 votes
0 answers
80 views
How is ex implemented in vim?
Now I am reading a book on sed and awk and to learn the history needed to use ed and ex commands. I thought for a vim user on Arch Linux, there is no need to install other packages but I found that ex ...
3 votes
1 answer
2k views
What are the main differences between the ed and the ex editor? [closed]
The ex editor is often touted as an enhancement and simplification of ed. I would like to know what specific enhancements and simplifications it offers. GNU ed, for example, offers extended regular ...
0 votes
1 answer
305 views
How to use vim command-mode indention in ex colon-mode?
I am trying to script some file changes using ex per this answer. The issue that I'm running into is that ex seems to assume that every command is preceded by a colon, so while I can do something ...
6 votes
1 answer
234 views
Place Single Dot With Vim/Ex
I'm messing around with vim one liners, and I'm unable to escape a . character in a vim ex mode append command. Basically, vim -En '+a|Hello World' '+p' '+q!' - prints "Hello World" But, vim -...
15 votes
3 answers
36k views
How can I use sed or ex to replace a block (multi-line code) with new block of text (code)?
I have to replace a large block of a text (shell script code) in a file with another block of text. I am impressed with the How can I use sed to replace a multi-line string? answered by antak and ...
2 votes
1 answer
2k views
Is replacing a particular line in a file through a bash script possible in VIM or EX?
I would like to modify a particular line, say line 5, in a file by using the EOEX construct how can I achieve my aim? The code snippet that I use to achieve my purpose is as follows: #!/bin/bash S=0....