|
From: Matthew B. <mp...@pi...> - 2015-06-26 16:26:30
|
That is a limitation of linux there is a maximum length of the command
line. You should be able to use a for loop in bash like:
for f in *.pdb ; do babel ${f} -omol2 ${f%.*}.mol2 ; done
The ${s%.*} bit is some bash string manipulation for stripping the file
extension.
On 06/26/2015 11:50 AM, AE wrote:
> Hello,
>
> I am trying to convert multiple (100000) files using open babel. Here
> is what I do:
> babel *.pdb -omol2 -m
> But it seems there are too many files, I get:
> -bash: /usr/local/bin/babel: Argument list too long
> How can I solve this?
>
> Thank you,
>
> Alsa
>
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
>
>
> _______________________________________________
> OpenBabel-discuss mailing list
> Ope...@li...
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
|