title: Use drag and drop to populate bash scrip for awk
body: <p>I am trying to create a bash script to search for information inside an xml file. Ideally I need it to be easy to use.
  Inside I want to popularize a variable from an echo and use that file path in awk but it's not working.</p>
  <p>Any ideas? Thanks in advance.</p>
  <pre><code>#!/bin/sh
  
  echo &quot;Enter Your path with the .xml file : &quot; #Drag and drop the file path here
  
  read ROUTE
  
  if [[ -f &quot;$ROUTE&quot; ]]; then
  
      AREA=$(awk -F &quot;[&gt;&lt;]&quot; '/SURFACE_AREA/{print $3}' $ROUTE)
  
      echo &quot;Total area: $AREA sq. km.&quot;
  
  else
  
      echo &quot;You did not select the correct format.&quot;
  
  fi
  
  /bin/rm -f $AREA
  /bin/rm -f $ROUTE
  </code></pre>