1
私はちょうど挿入されたドライブのsda#
をつかみようとしています。stdoutの特定のセクションを取得するにはどうすればよいですか?
tail -f /var/log/messages | grep sda:
戻り値:Mar 12 17:21:55 raspberrypi kernel: [ 1133.736632] sda: sda1
私はそれを行うだろうか、STDOUTのsda1
一部をつかむしたいと思いますか?
:This sequence resets the starting point of the reported match. Any previously matched characters are not included in the final matched sequence.
参照してください:K \