經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供