title: linux: get a script to be able to ask the user for a file name then open that file
body: <p>I need a linux script to ask the user if they want to use the program and then if yes it needs to ask the user what file they would like to search for. At the moment, I have created two files called <code>terminal</code> and <code>pi</code> to test my script on.</p>
  
  <p>The expected outcome of the program would be:</p>
  
  <pre><code>welcome
  would you like to find a file?(if yes type 'y' if no type 'n'
  </code></pre>
  
  <p>If yes, it should continue to ask what file they would like to find then it should print that file.</p>
  
  <p>So far I have this:</p>
  
  <pre><code>#!/bin/bash
  
  hello "welcome!"
  while [ "$hello" != "n" ]
  
  do
      echo "would you like to find a file?(if yes type 'y' if no type'n'"
      read hello
      case $hello in
          y)      echo "what is the name of the file?"
                      read option
                      ***this is where the code i dont know should theroecticaly be***
          n)      echo "goodbye"
      esac
  done
  </code></pre>
  
  <p>Like I said, the expected outcome is that it will print the file. How can this be done?</p>