Answers.Body: <p>I don't think it's possible unless you recompile the source code. It's very easy to do it at the source code; you'll just need to add an if-statement just before the PV is printed.</p>
  
  <p>Otherwise, you can pipe the outputs to a text file and do a grep like this:</p>
  
  <pre><code>grep 'depth 8' output.txt
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-01T06:30:05.053Z
Answers.Text: Ok I'll try recompiling the source code then. Thanks.
Answers.UserDisplayName: chessfix88
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-30T18:47:08.687Z
Answers.Text: @chessfix88 I think it's a better idea just to pipe the output to grep or awk
Answers.UserDisplayName: sharcashmo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-31T12:57:42.607Z
Answers.LastActivityDate: 2016-07-31T12:57:42.607Z
Answers.UserDisplayName: SmallChess
Body: <p>Is there a UCI command to output only selected info? For example if my input is</p>
  
  <pre><code>setoption name MultiPV value 3 go depth 8
  </code></pre>
  
  <p>I get info for every depth itineration in the search:</p>
  
  <pre><code>info depth 1 seldepth 1 multipv 1 score cp 74 nodes 63 nps 31500 tbhits 0 time 2 pv e2e4
  info depth 1 seldepth 1 multipv 2 score cp 70 nodes 63 nps 31500 tbhits 0 time 2 pv d2d4
  info depth 1 seldepth 1 multipv 3 score cp 68 nodes 63 nps 31500 tbhits 0 time 2 pv e2e3
  info depth 2 seldepth 2 multipv 1 score cp 79 nodes 158 nps 52666 tbhits 0 time 3 pv e2e4 b7b6
  info depth 2 seldepth 2 multipv 2 score cp 73 nodes 158 nps 52666 tbhits 0 time 3 pv e2e3 b7b6
  info depth 2 seldepth 2 multipv 3 score cp 63 nodes 158 nps 52666 tbhits 0 time 3 pv d2d4 b7b6
  info depth 3 seldepth 3 multipv 1 score cp 94 nodes 294 nps 98000 tbhits 0 time 3 pv e2e4 d7d6 d2d4
  info depth 3 seldepth 3 multipv 2 score cp 94 nodes 294 nps 98000 tbhits 0 time 3 pv d2d4 d7d6 e2e4
  info depth 3 seldepth 3 multipv 3 score cp 53 nodes 294 nps 98000 tbhits 0 time 3 pv e2e3 d7d6 d2d4
  info depth 4 seldepth 4 multipv 1 score cp 92 nodes 642 nps 160500 tbhits 0 time 4 pv e2e4 e7e6 d2d4 b7b6
  info depth 4 seldepth 4 multipv 2 score cp 89 nodes 642 nps 160500 tbhits 0 time 4 pv d2d4 e7e6 e2e4 d7d6
  info depth 4 seldepth 4 multipv 3 score cp 7 nodes 642 nps 160500 tbhits 0 time 4 pv e2e3 d7d5 d2d4 e7e6
  info depth 5 seldepth 5 multipv 1 score cp 50 nodes 2484 nps 310500 tbhits 0 time 8 pv b1c3 f7f5 d2d4 e7e6 d4d5
  info depth 5 seldepth 5 multipv 2 score cp 28 nodes 2484 nps 310500 tbhits 0 time 8 pv e2e3 d7d5 d2d4 g8f6 b1c3
  info depth 5 seldepth 5 multipv 3 score cp 22 nodes 2484 nps 310500 tbhits 0 time 8 pv e2e4 e7e6 d1e2 d7d5 d2d4
  info depth 6 seldepth 6 multipv 1 score cp 13 nodes 4812 nps 401000 tbhits 0 time 12 pv e2e4 d7d5 d1e2 e7e6 d2d4 g8f6
  info depth 6 seldepth 6 multipv 2 score cp 0 nodes 4812 nps 401000 tbhits 0 time 12 pv b1c3 d7d5 d2d4 g8f6 e2e3 e7e6
  info depth 6 seldepth 6 multipv 3 score cp 0 nodes 4812 nps 401000 tbhits 0 time 12 pv e2e3 d7d5 d2d4 g8f6 b1c3 e7e6
  info depth 7 seldepth 7 multipv 1 score cp 22 nodes 7301 nps 429470 tbhits 0 time 17 pv e2e4 d7d5 d1e2 e7e6 d2d4 d5e4 e2e4
  info depth 7 seldepth 7 multipv 2 score cp 8 nodes 7301 nps 429470 tbhits 0 time 17 pv d2d4 d7d5 d1d3 g8f6 b1c3 e7e6 e2e4 f6e4 c3e4 d5e4 d3e4
  info depth 7 seldepth 7 multipv 3 score cp 8 nodes 7301 nps 429470 tbhits 0 time 17 pv b1c3 d7d5 d2d4 g8f6 d1d3 e7e6 e2e4
  info depth 8 seldepth 8 multipv 1 score cp 31 nodes 13100 nps 485185 tbhits 0 time 27 pv e2e4 d7d5 e4d5 d8d5 b1c3 d5a5 d1e2 e7e6
  info depth 8 seldepth 8 multipv 2 score cp 4 nodes 13100 nps 485185 tbhits 0 time 27 pv b1c3 d7d5 e2e4 d5d4 c3b5 e7e6 e4e5 b7b6
  info depth 8 seldepth 8 multipv 3 score cp -11 nodes 13100 nps 485185 tbhits 0 time 27 pv d2d3 d7d5 e2e4 b8c6 e4d5 d8d5 b1c3 d5a5
  bestmove e2e4 ponder d7d5
  </code></pre>
  
  <hr>
  
  <p>Instead the output I want is only the last depth reached:</p>
  
  <pre><code>info depth 8 seldepth 8 multipv 1 score cp 31 nodes 13100 nps 485185 tbhits 0 time 27 pv e2e4 d7d5 e4d5 d8d5 b1c3 d5a5 d1e2 e7e6
  info depth 8 seldepth 8 multipv 2 score cp 4 nodes 13100 nps 485185 tbhits 0 time 27 pv b1c3 d7d5 e2e4 d5d4 c3b5 e7e6 e4e5 b7b6
  info depth 8 seldepth 8 multipv 3 score cp -11 nodes 13100 nps 485185 tbhits 0 time 27 pv d2d3 d7d5 e2e4 b8c6 e4d5 d8d5 b1c3 d5a5
  bestmove e2e4 ponder d7d5
  </code></pre>
  
  <p>Any ideas on how to do this?</p>
  
Tags: <engines><uci>
Title: How I tell the UCI engine to show less info during search?
ThreadText: # How I tell the UCI engine to show less info during search?
  
  (Asked by: username_0 on 2016-07-31)
  
  Is there a UCI command to output only selected info? For example if my input is
  setoption name MultiPV value 3 go depth 8
  
  I get info for every depth itineration in the search:
  info depth 1 seldepth 1 multipv 1 score cp 74 nodes 63 nps 31500 tbhits 0 time 2 pv e2e4
  info depth 1 seldepth 1 multipv 2 score cp 70 nodes 63 nps 31500 tbhits 0 time 2 pv d2d4
  info depth 1 seldepth 1 multipv 3 score cp 68 nodes 63 nps 31500 tbhits 0 time 2 pv e2e3
  info depth 2 seldepth 2 multipv 1 score cp 79 nodes 158 nps 52666 tbhits 0 time 3 pv e2e4 b7b6
  info depth 2 seldepth 2 multipv 2 score cp 73 nodes 158 nps 52666 tbhits 0 time 3 pv e2e3 b7b6
  info depth 2 seldepth 2 multipv 3 score cp 63 nodes 158 nps 52666 tbhits 0 time 3 pv d2d4 b7b6
  info depth 3 seldepth 3 multipv 1 score cp 94 nodes 294 nps 98000 tbhits 0 time 3 pv e2e4 d7d6 d2d4
  info depth 3 seldepth 3 multipv 2 score cp 94 nodes 294 nps 98000 tbhits 0 time 3 pv d2d4 d7d6 e2e4
  info depth 3 seldepth 3 multipv 3 score cp 53 nodes 294 nps 98000 tbhits 0 time 3 pv e2e3 d7d6 d2d4
  info depth 4 seldepth 4 multipv 1 score cp 92 nodes 642 nps 160500 tbhits 0 time 4 pv e2e4 e7e6 d2d4 b7b6
  info depth 4 seldepth 4 multipv 2 score cp 89 nodes 642 nps 160500 tbhits 0 time 4 pv d2d4 e7e6 e2e4 d7d6
  info depth 4 seldepth 4 multipv 3 score cp 7 nodes 642 nps 160500 tbhits 0 time 4 pv e2e3 d7d5 d2d4 e7e6
  info depth 5 seldepth 5 multipv 1 score cp 50 nodes 2484 nps 310500 tbhits 0 time 8 pv b1c3 f7f5 d2d4 e7e6 d4d5
  info depth 5 seldepth 5 multipv 2 score cp 28 nodes 2484 nps 310500 tbhits 0 time 8 pv e2e3 d7d5 d2d4 g8f6 b1c3
  info depth 5 seldepth 5 multipv 3 score cp 22 nodes 2484 nps 310500 tbhits 0 time 8 pv e2e4 e7e6 d1e2 d7d5 d2d4
  info depth 6 seldepth 6 multipv 1 score cp 13 nodes 4812 nps 401000 tbhits 0 time 12 pv e2e4 d7d5 d1e2 e7e6 d2d4 g8f6
  info depth 6 seldepth 6 multipv 2 score cp 0 nodes 4812 nps 401000 tbhits 0 time 12 pv b1c3 d7d5 d2d4 g8f6 e2e3 e7e6
  info depth 6 seldepth 6 multipv 3 score cp 0 nodes 4812 nps 401000 tbhits 0 time 12 pv e2e3 d7d5 d2d4 g8f6 b1c3 e7e6
  info depth 7 seldepth 7 multipv 1 score cp 22 nodes 7301 nps 429470 tbhits 0 time 17 pv e2e4 d7d5 d1e2 e7e6 d2d4 d5e4 e2e4
  info depth 7 seldepth 7 multipv 2 score cp 8 nodes 7301 nps 429470 tbhits 0 time 17 pv d2d4 d7d5 d1d3 g8f6 b1c3 e7e6 e2e4 f6e4 c3e4 d5e4 d3e4
  info depth 7 seldepth 7 multipv 3 score cp 8 nodes 7301 nps 429470 tbhits 0 time 17 pv b1c3 d7d5 d2d4 g8f6 d1d3 e7e6 e2e4
  info depth 8 seldepth 8 multipv 1 score cp 31 nodes 13100 nps 485185 tbhits 0 time 27 pv e2e4 d7d5 e4d5 d8d5 b1c3 d5a5 d1e2 e7e6
  info depth 8 seldepth 8 multipv 2 score cp 4 nodes 13100 nps 485185 tbhits 0 time 27 pv b1c3 d7d5 e2e4 d5d4 c3b5 e7e6 e4e5 b7b6
  info depth 8 seldepth 8 multipv 3 score cp -11 nodes 13100 nps 485185 tbhits 0 time 27 pv d2d3 d7d5 e2e4 b8c6 e4d5 d8d5 b1c3 d5a5
  bestmove e2e4 ponder d7d5
  
  
  Instead the output I want is only the last depth reached:
  info depth 8 seldepth 8 multipv 1 score cp 31 nodes 13100 nps 485185 tbhits 0 time 27 pv e2e4 d7d5 e4d5 d8d5 b1c3 d5a5 d1e2 e7e6
  info depth 8 seldepth 8 multipv 2 score cp 4 nodes 13100 nps 485185 tbhits 0 time 27 pv b1c3 d7d5 e2e4 d5d4 c3b5 e7e6 e4e5 b7b6
  info depth 8 seldepth 8 multipv 3 score cp -11 nodes 13100 nps 485185 tbhits 0 time 27 pv d2d3 d7d5 e2e4 b8c6 e4d5 d8d5 b1c3 d5a5
  bestmove e2e4 ponder d7d5
  
  Any ideas on how to do this?
  
  **Tags:** engines, uci
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-07-31. Score: 2
  
  I don't think it's possible unless you recompile the source code. It's very easy to do it at the source code; you'll just need to add an if-statement just before the PV is printed.
  Otherwise, you can pipe the outputs to a text file and do a grep like this:
  grep 'depth 8' output.txt
  
  > **Comments:**
  > **username_0**: Ok I'll try recompiling the source code then. Thanks.  
  > **username_2**: @username_0 I think it's a better idea just to pipe the output to grep or awk  
  
  ---
  
  