shell-script-pt
[Top][All Lists]
Advanced

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

Re: Arquivo e String em bash


From: marcos_laureano
Subject: Re: Arquivo e String em bash
Date: Wed, 30 Jan 2002 16:12:05 -0000
User-agent: eGroups-EW/0.82

É só fazer algo do tipo:

echo "fjkfjkgfjk" >> arquivo.txt

Com >> se o arquivo existir, sera adicionado no final, se não existir 
o arquivo é criado...

Marcos

--- In shell-script@y..., john_shell@z... wrote:
> Dae moçada...
> É o seguinte: como eu faço em bash um script que crie um arquivo 
texto em
> determinado diretorio e logo em seguida coloque uma string dentro 
desse
> arquivo texto?? e no caso do arquivo  já existir, jogar somente a 
string
> dentro desse arquivo, nao perdendo os dados jah existentes dentro 
do arquivo??
> 
> É isso
> 
> Grato!
> 
> João
> 
> 
> 
> ------------------------------------------
> Use o melhor sistema de busca da Internet
> Radar UOL - http://www.radaruol.com.br


reply via email to

[Prev in Thread] Current Thread [Next in Thread]