Operating System - Linux
1753478 Members
6151 Online
108794 Solutions
New Discussion юеВ

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 3
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.