dot/scripts/mpc_add_query.sh

6 lines
135 B
Bash
Raw Normal View History

2023-11-06 10:51:50 +00:00
#!/bin/sh
query=${1}
cd ~/music
2024-04-04 17:04:16 +00:00
find . -iname "*$query*" -type f | while read -r line; do echo "$line"; mpc insert "${line#./}"; done