On 12/04/2011 17:58, carlos ortega wrote: > Greetings, > I try to use babel to convert a multifile SDF to several files MOL2, > > I use this line: > > babel -isdf *.sdf -omol2 *.mol2 -m > > But the conversion put other name for the giles MOL2, and the file SDF has the > name for each file MOL2. > > How I do to put the name? > My file SDF has a lot of files, one million or more.
If you are using Windows babel *.sdf *.mol2 would convert each sdf file to a mol2 file with the same name. With Linux, the shell replaces the second * character and you have to use instead babel *.sdf .mol2 -m The newer, slightly different obabel interface is now recommended, so that the last command becomes obabel *.sdf -O .mol2 -m Chris ------------------------------------------------------------------------------ Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss