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

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

Re: [shell-script] Quebrar strings


From: Aurelio Marinho Jargas
Subject: Re: [shell-script] Quebrar strings
Date: Fri, 18 Jun 2004 12:35:30 -0300 (ART)

oi pessoal,

--- Douglas <address@hidden> escreveu: 
> Em Sex 18 Jun 2004 13:45, Andreyev Dias de Melo escreveu:

> > for i in * ; do mv $i ${i/%\.sample/\.cfg}; done
> 
>   for i in * ; do mv $i ${i/%\.cfg-sample/\.cfg}; done
> 
> Ficou mais elegante mesmo !

então que tal:

     rename .cfg-sample .cfg *

?


;)


NAME
       rename - Rename files

SYNOPSIS
       rename from to file...


é um sed pra trocar nomes de arquivo...

falou

=====
-- 
Aurelio Marinho Jargas, Curitiba, Conectiva
A odisseia verde no FISL http://aurelio.net/curso/fisl

______________________________________________________________________

Yahoo! Mail - agora com 100MB de espaço, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/


reply via email to

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