I am trying to identify system using systemd and glibc version 2.17 and then run specific set of code. This is what I have come out with but i get error
./testing.sh: line 4: [[UNIT: command not found
CODE:
#!/bin/sh
glib=`ldd --version | awk '/ldd/{print $NF}'`
ver=2.17
if [[`systemctl`=~-\.mount && $glib '==' $ver ]];then
echo "I have to execute certain specific stuff to glib ver 2.17"
fi