Computing.Net > Forums > Unix > passing a filename to vi ??

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

passing a filename to vi ??

Reply to Message Icon

Name: hernandez
Date: December 3, 2003 at 04:28:00 Pacific
OS: xp/korn shell
CPU/Ram: 256
Comment:

Hi
does anyone know how to pass a filename to vi??
what i mean is, i have some script that calls various different files based on user selection. and i want the user to be able edit these files in vi while the script still runs.
does this make any sense to anyone?
and does anyone know how to do this?

ta



Sponsored Link
Ads by Google

Response Number 1
Name: WilliamRobertson
Date: December 3, 2003 at 07:59:23 Pacific
Reply:

What's wrong with

vi $filename

or

vi $filelist

where $filelist is "file1 file2 file3"?


0

Response Number 2
Name: hernandez
Date: December 3, 2003 at 08:33:52 Pacific
Reply:

the simplest solution is always the best
thanks - didn't even think of doing that !!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Misalignment of Numbers Urgent -Unix Project Titl...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: passing a filename to vi ??

Passing incomplete filenames www.computing.net/answers/unix/passing-incomplete-filenames-/5678.html

Read File name and pass to SQLoader www.computing.net/answers/unix/read-file-name-and-pass-to-sqloader/5543.html

passing variable to ftp www.computing.net/answers/unix/passing-variable-to-ftp/5085.html