Pertanyaan yang diberi tag yes

58
Bagaimana `ya` menulis ke file begitu cepat?

Izinkan saya memberi contoh: $ timeout 1 yes "GNU" > file1 $ wc -l file1 11504640 file1 $ for ((sec0=`date +%S`;sec<=$(($sec0+5));sec=`date +%S`)); do echo "GNU" >> file2; done $ wc -l file2 1953 file2 Di sini Anda dapat melihat bahwa perintah yesmenulis 11504640baris dalam...