老蒼蠅和小蒼蠅
shell - While loop to test if a file exists in bash - Stack Overflow有一天,老蒼蠅和小蒼蠅在外玩。小蒼蠅指著漫天白云問:“媽媽,這是什么?”媽媽說:“這是白云。”小蒼蠅指著藍天問:“這是什么?”媽媽說:“這是藍天。”又指著鮮花問“這是什么?”。媽媽When you say "doesn't work", how do you know it doesn't work? You might try to figure out if the file actually exists by adding: while [ ! -f /tmp/list.txt ] do sleep 2 done ls -l /tmp/list.txt You might also make sure that you're using a Bash (or related...
全文閱讀