Mailinglist Archive: opensuse (3729 mails)

< Previous Next >
Re: [SLE] Shell script query
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: 17 Jun 2003 23:55:46 +0200
  • Message-id: <1055886946.18083.10.camel@xxxxxxxxxxxxxxxxx>
On Tue, 2003-06-17 at 23:48, James Ogley wrote:
> I've got a directory with about 1000 or so files named with this
> convention:
>
> filename.SNG.txt
<snip>
> Does anyone know of a way in bash script to rename all the files of the
> above format to filename.txt?

mmv \*.SNG.txt \#1.txt

mmv.rpm is somewhere on the CDs



< Previous Next >
Follow Ups
References