[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Off the wall vi question
- Subject: [ale] Off the wall vi question
- From: esoteric at 3times25.net (Geoffrey)
- Date: Thu, 02 Mar 2006 07:52:20 -0500
- In-reply-to: <[email protected]>
- References: <[email protected]>
tom sawyer wrote:
> Hello all,
>
> 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?
You want to use either sed or ed with a HERE doc. ed with a HERE doc is
likely to be a better solution as you edit a single file in place, where
as sed is going to require input and output files, whereas the HERE doc
will edit the file in place.
>
> Just curious,
> Thanks,
> Tom
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
--
Until later, Geoffrey
War never solved anything, well, except slavery, fascism and communism