LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-31-2006, 12:03 PM   #1
jojojo
Member
 
Registered: Feb 2005
Location: Kuala Lumpur, Malaysia
Distribution: Fedora Core 5
Posts: 121

Rep: Reputation: 15
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?
 
Old 05-31-2006, 12:15 PM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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?
 
Old 05-31-2006, 12:15 PM   #3
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 46
just type the command followed by the file name, e.g., kate johan.txt, gedit johan.txt, etc.
 
Old 05-31-2006, 12:18 PM   #4
Lotharster
Member
 
Registered: Nov 2005
Posts: 144

Rep: Reputation: 18
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Txt extension file translation UltraSoul Solaris / OpenSolaris 3 05-21-2005 12:11 PM
Reading a txt file in terminal over a network mdlister Programming 5 03-14-2005 08:47 AM
openoffice writer file won't open knowerrors Linux - Software 7 01-03-2005 06:19 AM
c++ writing to a .txt file xemous Programming 8 09-01-2004 11:57 PM
How to convert a txt file to be a db file in Redhat linux 9? winnie Linux - Newbie 3 06-27-2003 09:33 AM


All times are GMT -5. The time now is 12:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration