Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 9a95a889a8e3b06a3b26f6be90379ae5 > files > 51

samba3x-3.6.6-0.139.el5_10.x86_64.rpm

#!/bin/bash

nextattrib=`cat samba.schema | grep -i attributetype.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | \
   awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1`

(( nextattrib += 1 ))

echo "attributetype ( 1.3.6.1.4.1.7165.2.1.$nextattrib NAME ...."

nextoc=`cat samba.schema | grep -i objectclass.*\(.*1.3.6.1.4.1.7165. | grep -v '^#' | \
    awk '{print $3}' | cut -d. -f 10 | sort -n | tail -1`

(( nextoc += 1 ))

echo "objectclass ( 1.3.6.1.4.1.7165.2.2.$nextoc NAME ...."