File: miramceno5

package info (click to toggle)
smiles-scripts 0.2.0%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,208 kB
  • sloc: perl: 1,189; java: 1,094; sh: 1,052; makefile: 249
file content (13 lines) | stat: -rwxr-xr-x 613 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/bash
# This scripts searches organometallics with ligands coordinated in eta-5
# fashion, moving them to another directory. The scripts does not analyze or
# curate the entries, just separates them from the rest to be manually fixed
# after that.

[ -d ../working ] || mkdir ../working
for i in `ls *.smi` ; do
   dato=`obgrep '[Mg,Ca,Sr,Ba,Ra,Sc,Y,Lu,Lr,La,Ce,Pr,Nd,Pm,Sm,Eu,Gd,Tb,Dy,Ho,Er,Tm,Yb,Ac,Th,Pa,U,Np,Pu,Am,Cm,Ti,Zr,Hf,V,Nb,Ta,Cr,Mo,W,Mn,Tc,Re,Fe,Ru,Os,Co,Rh,Ir,Ni,Pd,Pt,Cu,Ag,Au,Zn,Cd,Hg,Al,Ga,In,Tl,Sn,Pb]1234C5~C1~C2~C3~C45' $i`
   if [ "$dato" != "" ]; then
     mv $i ../working
   fi
done