examples: Reformat shell scripts
[samba.git] / examples / LDAP / get_next_oid
index bf002003753388806a1521b41f4e3e466db3b303..f268b47b50dfb8e72b22302f0c6881f835a7c5a3 100755 (executable)
@@ -1,15 +1,15 @@
 #!/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=$(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 ))
+( (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=$(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 ))
+( (nextoc += 1))
 
 echo "objectclass ( 1.3.6.1.4.1.7165.2.2.$nextoc NAME ...."