[gmx-users] backup files

Ignacio Fernández Galván jellby at yahoo.com
Mon Mar 19 09:22:36 CET 2007


> Pedro, looks like gmx-tools allways want an .extension for input
> files, so how about renaming all # files, or at least remove the last
> # ?
> 
> try this: (quick and dirty)
> rename \#conf.gro.1#  #1.conf.gro   \#conf.gro.1#
> rename \#conf.tpr.1#   #1.conf.tpr   \#conf.tpr.1#
> rename \#conf.edr.1#  #1.conf.edr   \#conf.edr.1#
> rename \#conf.xtc.1#  #1.conf.xtc   \#conf.xtc.1#
> rename \#conf.trr.1#   #1.conf.trr   \#conf.trr.1#

For renaming a single file, use "mv", "rename" can rename multiple
files (some additional escaping might be needed):

(remove all the ".1#")
rename ".1#" "" \#conf*

(change the initial "#" into "#1.")
rename "#" "#1." \#conf*


		
___________________________________________________________ 
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html



More information about the gromacs.org_gmx-users mailing list