script for reading all values passed to find command

This commit is contained in:
john30
2015-03-29 12:13:15 +02:00
parent c10b5c8e99
commit 227bf83207
+5
View File
@@ -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