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

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

Re: [shell-script] Incluir header e trailer


From: eric miranda
Subject: Re: [shell-script] Incluir header e trailer
Date: Thu, 26 Aug 2010 09:51:20 -0300

Isso funciona:

groo@NOTEERICHDS:~$ echo 1 > 1.txt
groo@NOTEERICHDS:~$ echo 2 > 2.txt
groo@NOTEERICHDS:~$ cat 1.txt 2.txt
1
2
groo@NOTEERICHDS:~$ cat 1.txt 2.txt > 3.txt
groo@NOTEERICHDS:~$ cat 3.txt
1
2
groo@NOTEERICHDS:~$

Agora, se vc quer incluir o HEADER no próprio arquivo, num sei não.

Em 26 de agosto de 2010 09:22, Leandro Valiengo <
address@hidden> escreveu:

>
>
> Bom dia grupo,
>
>     Pergunta simples.
>
>     Tenho um arquivo chamado arq.txt:
>
> D;CARLOS;ALVES;MASC
> D;MARIA;SILVA;FEM
> D;AUGUSTO;SANTOS;MASC
>
>     Quero incluir neste arquivo um header e um trailer:
>
> HTXT
> D;CARLOS;ALVES;MASC
> D;MARIA;SILVA;FEM
> D;AUGUSTO;SANTOS;MASC
> T
>
> Para colocar o trailer é tranquilo, criei um arquivo chamado TRAILER.txt e
> usei:
>
> `cat TRAILER.txt >> arq.txt`
>
> Estou com duvido em relacao a incluir o header.
>
> Abr,
>
> Leo
>
> [As partes desta mensagem que não continham texto foram removidas]
>
>  
>


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

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