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

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

Re: [shell-script] TIMESTAMP


From: Aurelio Marinho Jargas
Subject: Re: [shell-script] TIMESTAMP
Date: Sun, 26 Oct 2003 08:39:43 -0300 (ART)

oi andré,
 
-- André Luiz Alves da Silva Prates wrote:
> Data.dat
> DataA.dat
> Arquivo.txt
> File.dat
> 
> Preciso executar um sed de apenas uma linha que faça desaparecer
> os últimos 4 caracteres do nome do arquivo, ou seja, ".dat" e
> ".txt"

usando o sed para apagar os 4 últimos caracteres, quaisquer
que sejam:

    sed 's/....$//'

usando o sed para apagar especificamente '.dat' e '.txt'
do final:

    sed 's/\.\(dat|txt\)$//'

falou!

obs.: "Assunto: TIMESTAMP" <--- não entendi :)

=====
-- 
Aurelio Marinho Jargas - Curitiba
Ser tosco eh... http://aurelio.net/fotos
Apostila de Shell a venda http://aurelio.net/shell/apostila

Yahoo! Mail - o melhor webmail do Brasil
http://mail.yahoo.com.br


reply via email to

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