4 ms·
Somewhat gratuitous use of awk. It could be bash driven IoT: ... | while read -r line; do file= case "$line" in *"03 52 c1 1a"*) echo "file1 "; f
by js2 9y ago
Somewhat gratuitous use of awk. It could be bash driven IoT:
... | while read -r line; do
file=
case "$line" in
*"03 52 c1 1a"*) echo "file1 "; file="file1.mp3" ;;
esac
if test -n "$file"; then
mpg321 -q "$file" &
fi
done