[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Off the wall vi question



On Wed March 1 2006 2:47 pm, tom sawyer wrote:
> I was just wondering, is it possible to have a *sh
> script call vi and then execute commands inside of vi?
> ?Or, is it possible to load a file in vi that
> automatically runs commands/aliases/etc?


yes you can, you use a "here document".. I think using "ed" would be 
easier though..

-- 
Paul Cartwright
Registered Linux user # 367800