Search this Website

 

Ubuntu

UNIX

how to edit odt files from the command line

Category: Ubuntu-Desktop Environments

how to edit odt files from the command line

hi, i am looking for a way to edit my odt files (kword documents) from the command line. basically, i spend a lot of time off home, and i can connect to my pc through ssh. it would be nice if i could work on my home docs via ssh. i could download them and edit them locally, but i find it awkward.
is there a program to do that? perhaps a plugin for vim?

thanks for the help
regards


maybe not the answer you expect, but oasis files are a collection of xml files compressed in zip.
try opening one from ark (or any other archiver) and you will see the files, if you are familiar with xml, you might work in there, and then compress back....
not the best option, but might work.....

also, oasis files are supportd by google docs, you might work there also...


quote:
originally posted by mexlinux
maybe not the answer you expect, but oasis files are a collection of xml files compressed in zip.
try opening one from ark (or any other archiver) and you will see the files, if you are familiar with xml, you might work in there, and then compress back....
not the best option, but might work.....

also, oasis files are supportd by google docs, you might work there also...

i was hoping that maybe vim or some other would have a way to edit the file without going through the whole unzip, edit, zip again.

google docs might be an option, but since im dealing with personal info, it aint much comfortable to have it on the web. i know the whole "do no evil" thing, but still...


sshfs+fuse might also work for you. it lets you mount a directory you can access via ssh, as a folder on your local system. that way you can edit it with kword without having to manually download/upload it.


the thing is i usually access my files from a crappy 98. i was wondering if there was something like a cli word processor i could run through ssh.
(something like the old dos works but for odt comes to mind)


quote:
originally posted by al_maverick
i was hoping that maybe vim or some other would have a way to edit the file without going through the whole unzip, edit, zip again.

you could write a small shell script that unzips the file to a temporary one, vi's the temporary file, then when you quit vi, zips up the temporary file overwriting the old one and then deletes the temp one.

the script would probably be less characters than this post for a quick and dirty version.