Results 1 to 15 of 15

Thread: Solaris UNIX

  1. #1

    Thread Starter
    Member ariel_au's Avatar
    Join Date
    Mar 2001
    Posts
    48

    Solaris UNIX

    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.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    vi is a text editor, and can't understand .DOC files.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Member ariel_au's Avatar
    Join Date
    Mar 2001
    Posts
    48

    just give me the commands will do...

    hi,
    just give me the commands will do.

  4. #4
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    You'd probably be best off FTPiung the file to your pc and edit it there.

    Her'es' a few commands anyway
    Last edited by Mark Sreeves; Jun 22nd, 2009 at 08:41 AM.
    Mark
    -------------------

  5. #5

    Thread Starter
    Member ariel_au's Avatar
    Join Date
    Mar 2001
    Posts
    48

    thanks but...

    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?

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    If you edit a .doc file using vi it will be irretrievably damaged.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    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
    -------------------

  8. #8
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Originally posted by parksie
    If you edit a .doc file using vi it will be irretrievably damaged.
    He's not listening to you parksie!
    Mark
    -------------------

  9. #9

    Thread Starter
    Member ariel_au's Avatar
    Join Date
    Mar 2001
    Posts
    48
    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.

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by Mark Sreeves
    He's not listening to you parksie!
    Seems like it
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  11. #11
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    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*

    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  12. #12
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140

    Re: thanks but...

    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

    Code:
    /home/me$ man vi
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  13. #13
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    info is good if you have it, but I think it's only commonly installed on Linux.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  14. #14
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Wait... I see this question coming... "what is man?"

    Type man man.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  15. #15

    Thread Starter
    Member ariel_au's Avatar
    Join Date
    Mar 2001
    Posts
    48

    editing .doc file is finally done...

    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width