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? |
Well CLI editors will be as simple as
Code:
<editor> file I take it you dont want to have to open the file from inside the program? |
just type the command followed by the file name, e.g., kate johan.txt, gedit johan.txt, etc.
|
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. |