Lab_interaccio/2023/smartcitizen-kit-21/tools/watcher_osx.sh

2 lines
127 B
Bash
Raw Permalink Normal View History

2025-02-25 21:29:42 +01:00
while true; do DEV=$(ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*'); echo $DEV > usb.txt; sleep 1; done