#!/bin/sh # # Written by Florian Diesch # # Updates may be available at # # # This script is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # You are free to do with it what ever you want. # test $# -le 1 && echo "$0 key value [result_key]" if [ $# = 3 ]; then hal-find-by-property --key "$1" --string "$2" | xargs -i hal-get-property --udi "{}" --key "$3" else hal-find-by-property --key "$1" --string "$2" | xargs -i lshal -u "{}" fi