Click to See Complete Forum and Search --> : Solaris UNIX
ariel_au
Jul 9th, 2001, 04:59 AM
i am using telnet to logged into Solaris UNIX system.
How can i edit a .doc file using the vi Editor?
I need the commands to edit the file using vi editor and the command to save the file.
Please reply.
parksie
Jul 9th, 2001, 05:03 AM
vi is a text editor, and can't understand .DOC files.
ariel_au
Jul 9th, 2001, 05:09 AM
hi,
just give me the commands will do.
Mark Sreeves
Jul 9th, 2001, 05:09 AM
You'd probably be best off FTPiung the file to your pc and edit it there.
Her'es' a few commands anyway
ariel_au
Jul 9th, 2001, 05:16 AM
i went to the directory with the filename in it..
then here is how i edit the file:
$ vi myfile.doc <Enter>
then the screen shows the contents inside the file.
Now after doing editing, how can i save it then exit?
by the way is the abv command is correct?
parksie
Jul 9th, 2001, 05:19 AM
If you edit a .doc file using vi it will be irretrievably damaged.
Mark Sreeves
Jul 9th, 2001, 05:20 AM
No idea!
I got that list of a colleague who uses vi a lot
I've never ever used vi and I don't intend to either;)
Mark Sreeves
Jul 9th, 2001, 05:21 AM
Originally posted by parksie
If you edit a .doc file using vi it will be irretrievably damaged.
He's not listening to you parksie! :D
ariel_au
Jul 9th, 2001, 05:23 AM
i am working on windows NT Server, but i logged into Solaris UNIX system using telnet.
now i just wanted to edit the file from the telnet screen using vi editor in unix.
parksie
Jul 9th, 2001, 05:26 AM
Originally posted by Mark Sreeves
He's not listening to you parksie! :D Seems like it :rolleyes:
Ianpbaker
Jul 9th, 2001, 07:27 AM
Earth Calling ariel_au, Come in ariel_au
You cannot edit the file as a word document is nothing as simple as a text file, everything is embedded.
*Ian Start's banging his head against the wall*
;)
CiberTHuG
Jul 9th, 2001, 08:06 AM
Originally posted by ariel_au
i went to the directory with the filename in it..
then here is how i edit the file:
$ vi myfile.doc <Enter>
then the screen shows the contents inside the file.
Now after doing editing, how can i save it then exit?
by the way is the abv command is correct?
Uhm... it has been a while since I used vi (I'm a pico man), but I think it is !w and then !q. I know there is a command that will do both, write then quit.
Now, two things...
If it is not a text file, do not use vi. If it is a text file that someone labeled .doc, then tell eveyone that, so they aren't confused.
And two... now listen closely, cause this is the most important thing you will ever learn about Unix...
MAN VI
You can man anything. man is your friend. Use it lots.
Again... that is
/home/me$ man vi
parksie
Jul 9th, 2001, 08:27 AM
info is good if you have it, but I think it's only commonly installed on Linux.
CiberTHuG
Jul 9th, 2001, 08:33 AM
Wait... I see this question coming... "what is man?"
Type man man. :)
ariel_au
Jul 10th, 2001, 09:10 PM
finally i can edit the .doc file using vi editor. thanks to CiberTHuG and Mark Sreeves for the commands...
i just realised there is an imposter called 'ariel_au.' and is trying to edit files using vi editor also...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.