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

Re: how to insert EOF from keyboard ?



On Thu, 1 Oct 1998, Jan Krupa wrote:

> Could someone please tell how can I insert under
> Linux (debian2.0) EOF (end of file) sign (in C lang.) from keyboard?
> I mean what sequence of keys ?

Er, insert it where?!  In EMACS, you would press control-Q control-D
(^Q^D) to insert a control-D into the file you're editing.  To close a
file you're cat'ing with `cat > 123' you would just press control-D
(^D).  I dunno how you'd insert a control-D into a file using VI.

Kendall


Reply to: