title: how do I store the output of a cut command into a variable
body: <p>I want to store something like this in a variable but it's not working. <code>hello.txt</code> has a line inside the file that I want to cut and store into the variable list but I don't know how.  </p>
  
  <pre><code>list=$(echo "hello.txt" | cut -f2 -d '/')
  </code></pre>
  
  <p>This is for unix/shell script.</p>