linux脚本简单实现 watch

咿呀哒喏 / 2023-08-07 / 原文

 

function watch
{
    while true; do 
        clear
        command "$@"
        sleep 5
    done
}