Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Linux functional equivalent of vi -x / ex -x

SOLVED
Go to solution
David G Ledger
Occasional Advisor

Linux functional equivalent of vi -x / ex -x

Is there a functional equivalent of the vi -x and/or ex -x Unix commands in Linux. I realise that the encryption function would probably be different. I just want to maintain a list and extract lines, all in an encrypted form.

David
3 REPLIES
Luk Vandenbussche
Honored Contributor
Solution

Re: Linux functional equivalent of vi -x / ex -x

David,

Use vim -x
Van den Broeck Tijl
Valued Contributor

Re: Linux functional equivalent of vi -x / ex -x

Alternativly you can use GnuPG for encrypted files (both sync & async) with vim. See http://vim.sourceforge.net/scripts/script.php?script_id=661

David G Ledger
Occasional Advisor

Re: Linux functional equivalent of vi -x / ex -x

Thanks both,

I always use the vi name, so I didn't think to try the vim name. It asks for the key twice. Perhaps reasonable for a new file, but a bit odd when it already exists.

Is there an equivalent to ex -v? I'm doing something like:

w=word
x="$(echo "/$w/p" | ex -x)"
print -n "$x"
sleep 5
printf "\r \n"

in a script under Unix. The vi -x is just for maintenance.

I wouldn't be allowed to install GPG.