title: How to call redis-cli get using Bash?
body: <p>Is it possible to call <code>redis-cli</code> in bash?</p>
  
  <p>I tried:</p>
  
  <pre><code>#!/bin/bash
  while IFS='' read -r line || [[ -n "$line" ]]; do
      echo "Text read from file: $line"
          echo 'keys $line' | redis-cli | sed 's/^/get /' | redis-cli
  done &lt; "$1"
  </code></pre>
  
  <p>It returns: </p>
  
  <pre><code>line 4: redis-cli: command not found
  </code></pre>
  
  <p>I am trying to match the redis key <code>nt:&lt;numbers&gt;</code> as key from input file and display. </p>
  
  <p>Sample input:</p>
  
  <pre><code>nt:60136667431
  </code></pre>
  
  <p>The command I run:</p>
  
  <pre><code>./updateT.sh input.txt 
  </code></pre>
  
  <p>Is there any way I can call <code>redis-cli get cmd</code> in script for many key values passed as input?</p>