LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Open .txt file using OpenOffice through terminal (https://www.linuxquestions.org/questions/linux-newbie-8/open-txt-file-using-openoffice-through-terminal-450250/)

jojojo 05-31-2006 11:03 AM

Open .txt file using OpenOffice through terminal
 
I've created a .txt file using touch johan.txt.
When I run cat johan.txt through terminal, it display the file contents in the terminal.

Is there a command that when I type in the terminal, it will display the contents of the file using OpenOffice or KWord or any text editor?

ethics 05-31-2006 11:15 AM

Well CLI editors will be as simple as
Code:

<editor> file
GUI ones you may be able to get away with the same.

I take it you dont want to have to open the file from inside the program?

slackhack 05-31-2006 11:15 AM

just type the command followed by the file name, e.g., kate johan.txt, gedit johan.txt, etc.

Lotharster 05-31-2006 11:18 AM

You can open it with openoffice (ooffice johan.txt), which will open a separate Open Office Window.

If you want to use a terminal program, you should use vim (type: vi johan.txt) or nano (nano johan.txt). Vim is a very powerful editor, but it takes some time to get used to it. You should definitely google for a quick tutorial if you wnat to use vim. Nano is similar to DOS' edit, and quite intuitively to use


All times are GMT -5. The time now is 11:36 AM.