From 227bf832073653cda2e97fcc5f77e22f8c4f0d47 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 29 Mar 2015 12:13:15 +0200 Subject: [PATCH] script for reading all values passed to find command --- contrib/scripts/readall.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 contrib/scripts/readall.sh diff --git a/contrib/scripts/readall.sh b/contrib/scripts/readall.sh new file mode 100755 index 00000000..ab409dd2 --- /dev/null +++ b/contrib/scripts/readall.sh @@ -0,0 +1,5 @@ +#!/bin/sh +for i in `echo "f" "$@"|nc localhost 8888|cut -d ' ' -f '1-2'|sed -e 's# #:#'`; do + ret=`echo "r -c" ${i%%:*} ${i##*:}|nc localhost 8888|head -n 1` + echo ${i%%:*} ${i##*:} "=" $ret +done