摘要: watch For example every 5 second, I want to print out the time then save the time into the a txt file $watch -n5 'echo `date +%T` >> hello.txt' # then 阅读全文
posted @ 2024-06-07 20:58 Zhentiw 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Backticks Using to exec cmd and return the output as string $ echo `date` Fri Jun 7 15:40:11 EEST 2024 The same effect you can achieve by using $ echo 阅读全文
posted @ 2024-06-07 20:47 Zhentiw 阅读(3) 评论(0) 推荐(0) 编辑