mirror of
https://git.davidovski.xyz/dot.git
synced 2024-08-15 00:43:28 +00:00
7 lines
252 B
Bash
Executable file
7 lines
252 B
Bash
Executable file
#!/bin/sh
|
|
# add recently added files to the playlist
|
|
|
|
count=${1:-10}
|
|
|
|
cd ~/music
|
|
find . -type f -print0 | xargs -0 stat -c"%Y %n" | sort -n | tail -${count} |cut -d' ' -f2- | while read -r line; do printf "%s\n" "$line" ; mpc insert "${line#./}"; done
|