added
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/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]) } }
|
||||
'
|
||||
Reference in New Issue
Block a user