Files
utilities/libversionShow
2016-02-22 08:53:19 +00:00

16 lines
555 B
Bash
Executable File

#!/bin/bash
if [ $# != 1 ]
then
echo usage libversionShow IOCNAME >&2
exit 1
fi
IOC=$1
wget -q -O - "http://epics-boot-info.psi.ch/libinfo.ashx?ioc=$IOC&format=csv&separator= &header=no&limit=0" | \
awk '
BEGIN {RS="\r?\n"; i=1;} # wep page sends <cr><lf>
{l[i] = $2; v[i]=$3; d[i]=$4; if (length($2)>ll) {ll=length($2)}; if (length($3)>lv) {lv=length($3)}; i++ }
END {for (i in l) { printf ("%-*s %-*s %s\n", ll, l[i], lv, v[i], d[i]) } }
'
# $Header: /cvs/G/EPICS/App/scripts/libversionShow,v 1.2 2016/02/22 08:53:19 zimoch Exp $