#!/bin/sh #outputs all cartridges whose state contains #the regular expression given as the 1st arg txt=$1 shift eval exec awk --assign "RS='},\n'" \'/$txt/\' "$@"