 <p>I found one possible solution-</p> <pre><code>cut -d "[" -f2 | cut -d "]" -f1 </code></pre> <p>so the exact solution is </p> <pre><code># cat /sys/block/sdb/queue/scheduler | cut -d "[" -f2 | cut -d "]" -f1 </code></pre>