Quick navigation:        Home   |    Site Map   ||    References   |    Biography   ||    Copyright   |    Other copyright   |    Contact us   |   
Protein structure
 

Re: [ccp4bb] changing names of many files

 

Basic tutorials:
 
 

CCP4bb navigation

CCP4bb <-- 2008 <-- March 2008 <-- 12 March 2008
Previous message:
Subject: Re: changing names of many files
From: Rajesh Kumar Singh singhrk {- at -} UNI-GREIFSWALD {- dot -} DE
Date: 2008-03-12
Next message:
Subject: Procheck, MolProbity
From: Vellieux Frederic Frederic {- dot -} Vellieux {- at -} IBS {- dot -} FR
Date: 2008-03-12


Subject: Re: changing names of many files
From: Tim Gruene tg {- at -} SHELX {- dot -} UNI-AC {- dot -} GWDG {- dot -} DE
Date: 2008-03-12

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.

CCP4bb navigation

CCP4bb <-- 2008 <-- March 2008 <-- 12 March 2008
Previous message:
Subject: Re: changing names of many files
From: Rajesh Kumar Singh singhrk {- at -} UNI-GREIFSWALD {- dot -} DE
Date: 2008-03-12
Next message:
Subject: Procheck, MolProbity
From: Vellieux Frederic Frederic {- dot -} Vellieux {- at -} IBS {- dot -} FR
Date: 2008-03-12



ProteinCrystallography.org: Copyright 2006-2008 by Quid United Ltd