You want to use the "copy" format: https://openbabel.org/docs/dev/FileFormats/Copy_raw_text.html
e.g. obabel infile.sdf -O outfile.sdf -ocopy -f 1 -l 1000 Hope that helps, -Geoff --- Prof. Geoffrey Hutchison Department of Chemistry University of Pittsburgh tel: (412) 648-0492 email: geo...@pitt.edu twitter: @ghutchis web: https://hutchison.chem.pitt.edu/ > On Jan 31, 2019, at 2:44 PM, gehtalles <toz...@t-online.de> wrote: > > I got a massive SDF file with some 300k structures I need to split into > smaller files > > I tried > > babel infile.sdf -isdf -osdf -f 1 -l 1000 -O outfile.sdf > > but all meta data defined in > >> <data name> > data content > > are discarded in the outfile. > > Is there an option I missed to include them in the new file? > > > > -- > Sent from: http://forums.openbabel.org/General-discussion-f3090658.html > > > _______________________________________________ > OpenBabel-discuss mailing list > OpenBabel-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss >
_______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss