Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Conversion program/command via CLI Post 302967818 by Huitzilopochtli on Sunday 28th of February 2016 10:42:53 PM
Old 02-28-2016
Conversion program/command via CLI

I already know about the docx2txt program, and it's extremely helpful. ssconvert is also really helpful, but unlike docx2txt, it works both ways. How does one convert a .txt file to .docx via CLI, or is it even possible??

This:
Code:
docx2txt example.docx

results in making a .txt file out of the original .docx file.

What I want to know is, is there a way to do the exact opposite in the Command Line?? Making a .docx file out of a .txt file??

P.S. I am using Xubuntu 14.04.4, 64-bit.

Moderator's Comments:
Mod Comment edit by bakunin: corrected typo in the title.

Last edited by bakunin; 03-02-2016 at 08:13 AM..
 

10 More Discussions You Might Find Interesting

1. Programming

Capturing cli Program output

A few years ago I took a C programming class and used both Linux and FreeBSD as my operating systems and gcc as the compiler. I ran a Command-line utility to to capture what happened as I ran the code, the output was saved to a file that I specified when I ran the utility command (that I can't... (1 Reply)
Discussion started by: Christopher
1 Replies

2. UNIX for Dummies Questions & Answers

Script to open program and send/execute command in program

Hi, i want to write a script that executes a program (exec?) . this program then requires a filename as input. how do i give it this input in the script so the program will be complete run and close by the script. e.g. exec prog.exe program then asks for filename "enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies

3. Shell Programming and Scripting

Command for unix to dos conversion

Dear All Could you please advice how do we convert a unix file to dos I know one command,ux2dos, which somehow does not work to give desired output Inputs on this is appreciated Thanks, Suresh (3 Replies)
Discussion started by: sureshg_sampat
3 Replies

4. Solaris

Bad command error for date conversion

Hi, Iam trying to convert date and time to milliseconds which iam using in a script on Sun Solaris. I have searched the posts on the forum but i could not get any solution. The format iam using in script is: date -u "Thu Dec 24 00:01:00 EST 2009" But i get a bad command error. ... (6 Replies)
Discussion started by: jyothi_wipro
6 Replies

5. Shell Programming and Scripting

Date command output conversion

hi all, i need to measure time difference between the time a process started, to the time it ended. i am assuming the following are the steps: 1. output 'date' command at start time 2. output 'date' command at end time 3. subtract the two question is, how do i subtract the two time... (4 Replies)
Discussion started by: rathajs
4 Replies

6. Shell Programming and Scripting

Characterset conversion problem using iconv command

Hi Friends, I am not able to conver character set from UTF-8 to IBM-284 throwing an error "cannot open convertor" . Could you please help me how to get out of this error. Below command is working fine iconv -f ISO8859-15 -t UTF-8 fromfile.txt > tofile.txt But the below command is... (2 Replies)
Discussion started by: sivakumarl
2 Replies

7. Shell Programming and Scripting

Case conversion within a command

Hi All, I need the variable to be set in both uppercase and lowercase in a single command DATABASE=ORCL something like the below which is absolutly wrong find /ora/admin/11.1.0/diag/rdbms/{print tolower($0)}${DATABASE}/{print toupper($0)}${DATABASE} The o/p should be as below:... (4 Replies)
Discussion started by: jjoy
4 Replies

8. Linux

Way to execute a command from CLI

OS : Linux Kernel ver : 2.6x Is there any legit difference between way that shell interprets the below mentioned command lines in Linux environment? Option A> . <exec_file_name> arg1 agr2 Option B> ./<exec_file_name> arg1 agr2 The reason for me asking this silly question is... (2 Replies)
Discussion started by: kumarjt
2 Replies

9. AIX

Command to see the status of managed node from CLI of HMC?

Folks, Asking a silly question - is there a way to know the status(Power Off/Running) of a managed node from CLI of HMC, alike the way we see it for the LPARs running on the node from 'vtmenu'? Most of us use the UI to see the status of the LPARs/Managed node - but just inquisitive to know if... (4 Replies)
Discussion started by: thisissouvik
4 Replies

10. Shell Programming and Scripting

Running a command in another cli

I am writing a script to login to to a mongo DB node and get the status of that machine. The usual work flow is : # mongo admin -u root -p root MongoDB shell version: 3.0.11 connecting to: admin rs0:SECONDARY> Then in the new prompt I can run a command to check status : ... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies
ooconvert(1)							   User Commands						      ooconvert(1)

Name
       ooconvert - Commandline Document Converter Using OpenOffice.org

SYNOPSIS
ooconvert [--help] [--force] input output DESCRIPTION
This tool converts documents between various formats on the commandline. It uses OpenOffice.org that guarantees the quality of available import and export filters. This tool tries to start OpenOffice.org in the server mode on backgroud. It does not work if the OpenOffice.org application has already been running. Also it slows down the conversion a lot. We hope to reduce these limitations in the further versions. OPTIONS
input Input file. The filename suffix must be one of the currently supported file formats, see below. output Output file. The filename suffix defines the output file format. It must be one from the table below. An existing file can be over- written by the --force option. --help Print help and exit. --force Force an already existing output file to be replaced. SUPPORTED FILE FORMATS
The current version of this tool does not read the list of available input and output filters directly from OpenOffice.org. The list of supported file formats is hardcoded and thus limited to: doc Microsoft Word 97/2000/XP docx MS Word 2007 XML dot Microsoft Word 97/2000/XP Template dotx MS Word 2007 XML Template html HyperText Markup Language (Web Page) odt ODF Text Document ods ODF Spreadsheet odp ODF Presentation ott ODF Text Document Template ots ODF Spreadsheet Template otp ODF Presentation Template pdf Portable Document Format ppt Microsoft PowerPoint 97/2000/XP pptx Microsoft PowerPoint 2007 XML pot Microsoft PowerPoint 97/2000/XP Template potx Microsoft PowerPoint 2007 XML Template rtf Rich Text Format stc OpenOffice.org 1.0 Spreadsheet Template sti OpenOffice.org 1.0 Presentation Template stw OpenOffice.org 1.0 Text Document Template sxc OpenOffice.org 1.0 Spreadsheet sxi OpenOffice.org 1.0 Presentation sxw OpenOffice.org 1.0 Text Document swf Macromedia Flash txt Plain Text xls Microsoft Excel 97/2000/XP xlsx Microsoft Excel 2007 XML xlt Microsoft Excel 97/2000/XP Template xltx Microsoft Excel 2007 XML Template TROUBLESHOOTING PROBLEMS
See http://en.opensuse.org/Bugs:OOo for more details about how to report bugs in OpenOffice.org. AUTHOR
This manual page was created by Petr Mladek <petr.mladek@novell.com>. OpenOffice.org Converter 2009-02-09 ooconvert(1)
All times are GMT -4. The time now is 12:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy