shithub: riscv

ref: 96210d79b29eb31c6958c7aada57f39dc7f6cdcf
dir: /rc/bin/stop/

View raw version
#!/bin/rc
U=`{cat /dev/user}
ps | sed -n '/^'$U' .* '$1'$/s%[^ ]*  *%~>/proc/%
s%  *.*%/ctl%
s%~%echo stop%p'