Find the answer to your Linux question:
Results 1 to 3 of 3
please can any one help! i am pretty new to linux. I am trying to write a script using the vi text editor. I need to call up a file ...
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Posts
    3

    vi script

    please can any one help! i am pretty new to linux. I am trying to write a script using the vi text editor. I need to call up a file from my directory in the script, how can i do this
    Last edited by devils casper; 08-09-2007 at 08:44 AM. Reason: Thread moved to Programming / Scripting Forum

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    I don't understand.

    Do you want to invoke a program in the current directory? This is achieved by just saying "./foo", where "foo" is the name of the script.

    Or do you want to insert the contents of another file into the script? To do that in vi, you run, from command mode, ":r FILE". The contents of FILE will be inserted into the current file.
    DISTRO=Arch
    Registered Linux User #388732

  3. #3
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044
    Reading this might do you more good.

Posting Permissions

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