erlug
[Top] [All Lists]

Re: [Erlug] Denominare file scheda1.php?ID=2

To: erlug@xxxxxxxxxxxxxx
Subject: Re: [Erlug] Denominare file scheda1.php?ID=2
From: Nando Santagata <nando@xxxxxxxxx>
Date: Fri, 22 Oct 2004 15:52:30 +0200
On Fri, Oct 22, 2004 at 03:22:07PM +0200, Giovanni Caruso wrote:
> > Prova "rename" (nella Debian e` nel pacchetto del Perl).
> > rename 's/.php\?ID=(\d+)/_ID_$1.htm/' scheda*
> Perfetto...proprio quello che volevo...a questo punto per modificare i link 
> interni ai file (che seguono la stessa regola) cosa mi conviene usare, sed?

Questo dovebbe bastare (ma non l'ho testato):

perl -i.bak -pe 's/.php\?ID=(\d+)/_ID_$1.htm/g' scheda*

-- 
Rev. Nando Santagata: Telemastica & infornatica
You have reached Ritual Sacrifice. For goats, please press '1' or say 'goats'.
To sacrifice a loved one or pet, press the pound key.
Key fingerprint = 1054 9311 458D 4BAA E97B  F447 7CD4 54B5 0208 F815

<Prev in Thread] Current Thread [Next in Thread>