Kindly download the following script and execute the script using the following command.
[root@arunlal ~]# wget lintechops.com/wp-version.sh
[root@arunlal ~]# sh wp-version.sh
Output be like.
abxxxcd '4.4.18';
abxxxdc '4.9.10';
abxxxfg '4.0.26';
abxxxtr '3.9.27';
acxxxje '4.0.26';
apxxxit '3.8.5';