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 ...
- 08-08-2007 #1Just 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
- 08-09-2007 #2
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
- 08-10-2007 #3Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044
Reading this might do you more good.


Reply With Quote