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
REPORT-CLI(1)							 LIBREPORT MANUAL						     REPORT-CLI(1)

NAME
report-cli - Work with ABRT problem directories from command line. SYNOPSIS
report-cli [-vsp] -L[PREFIX] [PROBLEM_DIR] report-cli [-vsp] -e EVENT PROBLEM_DIR report-cli [-vsp] -a[y] PROBLEM_DIR report-cli [-vsp] -c[y] PROBLEM_DIR report-cli [-vsp] -r[y|o|d] PROBLEM_DIR DESCRIPTION
report-cli is a command line tool that manages application crashes and other problems caught by abrtd daemon, or created by other programs using libreport. It enables access to, manipulation of problem data, and reporting. OPTIONS
-L[PREFIX] List possible events [which start with PREFIX] -e EVENT Run EVENT on PROBLEM_DIR -a, --analyze Run analyze event(s) on PROBLEM_DIR -c, --collect Run collect event(s) on PROBLEM_DIR -r, --report Analyze, collect and report problem data in PROBLEM_DIR -d, --delete Remove PROBLEM_DIR after reporting -y, --always Noninteractive: don't ask questions, assume positive answer to all of them -o, --report-only With -r: do not run analyzers, run only reporters -v, --verbose Be verbose -s Log to syslog -p Add program names to log -V, --version Display version and exit AUTHORS
o ABRT team LIBREPORT 2.1.11 06/18/2014 REPORT-CLI(1)
All times are GMT -4. The time now is 10:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy