title: How to copy the terminal's output and paste them into input?
body: <p>Does anyone know the function that I have to use to copy the output in the terminal?</p>
  
  <p>For example, in terminal, if I input "ls", it gives me a list of files. I want to copy some of the texts and paste them into the next command to do "cd ". Is shell script able to do that?</p>