エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント3件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Store the output of date and watch command to a file
I am a newbie to linux and I am trying to watch a command and try to log it into a file. I tried ... I am a newbie to linux and I am trying to watch a command and try to log it into a file. I tried watch -t -n 10 "(date '+TIME:%H:%M:%S' ; ps aux | grep "pattern" | wc -l)" >> logfile and am expecting a result like TIME: 10:32:30 12 TIME: 10:32:40 18 TIME: 10:32:50 2 to be stored in logfile. However, when the logfile has unprintable characters in in. How do I get this kind of output from the comman
2019/11/12 リンク