shithub: bin.rc

ref: e30bac13912ad2f9923542d9e72c327347005365
dir: /bin/pins/

View raw version
#!/bin/rc
dir=$1
if(~ $#dir 0)
	dir='out'
</dev/audiostat awk '
/^pin [0-9]+ '$dir'/ {
	printf "@{echo pin %d>/dev/audioctl} #", $2
	for(i = 4; i <= NF; i++){
		if($i == "←")
			break
		printf " %s", $i
	}
	printf "\n"
}'