 |
linux - while read line, only reading last line - Stack Overflow
#!/bin/bash file=/home/dummy/list.m3u shuf -n file > randomshuffled echo " " while IFS= read -r line do echo "loadfile '$line'" >> /tmp/mplayer.fifo done < $( cat randomshuffled) See the >> for appending lines in file. If you want to clear the queue and s
stackoverflow.com |
 |