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

Re: [ccp4bb] Change reflection file names

- Protein crystallography

Main steps:

   - Protein purification
   - Crystallisation

Special:

   - Programs for crystallography
   - X-ray detectors

Basic tutorials:

   - Chemistry
   - Protein
   - Peptide
   - Amino Acids

Xtal community:

   - CCP4BB

CCP4bb navigation

CCP4bb <-- 1999 <-- November 1999 <-- 30 November 1999
Previous message:
Subject: Change reflection file names
From: yanming Zhang shanmao62 {- at -} YAHOO {- dot -} COM
Date: 2008-08-07
Next message:
Subject: Re: Change reflection file names
From: Ian Tickle I {- dot -} Tickle {- at -} ASTEX-THERAPEUTICS {- dot -} COM
Date: 2008-08-07


Subject: Re: Change reflection file names
From: Clemens Vonrhein vonrhein {- at -} GLOBALPHASING {- dot -} COM
Date: 2008-08-07

In /sh/bash/ksh/zsh something like

for f in XXX_10[0-9][0-9][0-9].img
do
mv -vi $f XXX_${f#XXX_10}
done

Cheers

Clemens

PS: no guarantee ...

On Thu, Aug 07, 2008 at 01:40:44AM -0700, yanming Zhang wrote:
> All UNIX gurus,
>  
> I need to change 300 image file names sequentially, such as:
> XXX_10001.img to XXX_101.img
> XXX_10002.img to XXX_102.img
> ................
>  
> Obviously, using UNIX 'mv' to work on 300 files is stupid. Anyone can give me a very simple UNIX shell file to finish the job quickly? Thank you!
>  
> Yanming
>  
>
>
>
--

***************************************************************
* Clemens Vonrhein, Ph.D. vonrhein AT GlobalPhasing DOT com
*
* Global Phasing Ltd.
* Sheraton House, Castle Park
* Cambridge CB3 0AX, UK
*--------------------------------------------------------------
* BUSTER Development Group (http://www.globalphasing.com)
***************************************************************

CCP4bb navigation

CCP4bb <-- 1999 <-- November 1999 <-- 30 November 1999
Previous message:
Subject: Change reflection file names
From: yanming Zhang shanmao62 {- at -} YAHOO {- dot -} COM
Date: 2008-08-07
Next message:
Subject: Re: Change reflection file names
From: Ian Tickle I {- dot -} Tickle {- at -} ASTEX-THERAPEUTICS {- dot -} COM
Date: 2008-08-07



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