Skip to main content

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.

3 votes
1 answer
63 views

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 ...
elbarna's user avatar
  • 14.3k
0 votes
0 answers
80 views

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 ...
Taro's user avatar
  • 111
3 votes
1 answer
2k views

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 ...
edman's user avatar
  • 598
0 votes
1 answer
305 views

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 ...
Dan's user avatar
  • 3
6 votes
1 answer
234 views

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 -...
dhakim's user avatar
  • 63
15 votes
3 answers
36k views

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 ...
gibies's user avatar
  • 371
2 votes
1 answer
2k views

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....
Vesnog's user avatar
  • 689