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

Re: caractere de fim de texto



On Tue, 23 Oct 2001, Jackson Gois wrote:
> Qual caractere o vi coloca para indicar fim de texto ?

Em geral, nenhum. A especificação para arquivos de texto Unix não pede um.
Você vai precisar usar o tamanho de arquivo para detectar EOF.

Por outro lado, ^D (ASCII 0x04, EOT / End Of Transmission) pode ser
utilizado para indicar para fechar uma pipe, tal como um "cat >teste". Isso
não significa que o ^D (EOT) seja usado como o ^Z (EOF) do formato de
arquivos do MSDOS...

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Reply to: