Just for the sake of completeness:
mmv is also a package available for some linux distributions (SuSE at
least), so you don't need the alias.
If you like doing so using shell features, you could, with bash, issue
for i in 1105\ A*; do mv "$i" "${i#1105\ }" ; done
This might work in many POSIX-sh-compliant shells, not only bash (which
the obsolete (t)csh is not ;-> )
Cheers, Tim
--
Tim Gruene
Institut fuer anorganische Chemie
Tammannstr. 4
D-37077 Goettingen
GPG Key ID = A46BEE1A
On Wed, 12 Mar 2008, Raja Dey wrote:
> Hi,
> How I can change names of many files keeping the extension same. My files are like this
>
> 1105 A0176.osc
> 1105 A0177.osc
> 1105 A0178.osc
> 1105 A0179.osc
> 1105 A0180.osc
>
> I want to change them as
>
> A0176.osc
> A0177.osc
> A0178.osc
> A0179.osc
> A0180.osc
>
> I am using ubuntu linux.
>
> Thanks...
> RD
>
>
>
> Raja Dey, Ph.D.
> Research Associate
> Molecular and Computational Biology
> University of Southern California
> 1050 Childs Way, Los Angeles, CA 90089
>
>
> ---------------------------------
> Chat on a cool, new interface. No download required. Click here.
|