Mailinglist Archive: opensuse (4343 mails)

< Previous Next >
AW: [SLE] quick script
  • From: "Peer Stefan" <stefan.peer@xxxxxxxx>
  • Date: Thu, 21 Nov 2002 15:02:11 +0100
  • Message-id: <D7EC11AE920B1440A0AD91179E9CACB61781CC@xxxxxxxxxxxxxxx>
> From: zentara [mailto:zentara@xxxxxxxxxxx]
> Gesendet: Donnerstag, 21. November 2002 13:55
> An: suse-linux-e@xxxxxxxx
> Betreff: Re: [SLE] quick script
>
>
> On Thu, 21 Nov 2002 02:07:39 +0100
> Anders Johansson <andjohNOSPAM@xxxxxxxxxxxxxxxx> wrote:
>
> >On Thursday 21 November 2002 02.02, Anders Johansson wrote:
> >> On Thursday 21 November 2002 01.56, Landy Roman wrote:
> >> > i have a bunch of files in a directory and i need to add the sql
> >> > extention to them any quick way?
> >>
> >> mmv * #1.sql
> >
> >for pre-emptive purposes
> >
> >You'll need to escape the special characters, so the above would be
> >
> >mmv \* \#1.sql
>
> I can't help but interject the easy method using "mc".
> Just highlight all the files, hit F6, enter *.sql

Or the one thing working on all nix-operating systems, regardless whether mmv or mc are installed:

find . -type f -name "*<pattern>*" -exec mv {} {}.sql \;

regards,
Stefan

< Previous Next >
This Thread
  • No further messages