title: How to read the column of text file using Linux shell script and copy the files to another path with in sub directories
body: <p>I need a shell script for this:</p>
  
  <p>Ex: I have XMLDataNew.txt file consist with below values</p>
  
  <blockquote>
    <p>doument1.doc us        template</p>
    
    <p>doument2.doc us  vimbu standard</p>
    
    <p>doument1.doc us  aldo  template</p>
    
    <p>doument1.doc us  vimbu standard</p>
  </blockquote>
  
  <p>The above text file read the using shell script and according to columns levels and make the directory path copy the $1 first column values in to respective locations.</p>
  
  <p>I have tried:</p>
  
  <pre><code>while read -r line
  do 
      id=$(echo $line | awk '{print $2}')
      echo $id 
      mkdir -p "/home/mint/Documents/LiveLink/$id" 
  
      pc=$(echo $line | awk '{ print $3}') 
      echo $pc 
      mkdir -p "/home/mint/Documents/LiveLink/$id/$pc" 
  
      ct=$(echo $line | awk '{ print $4}') 
      echo $ct 
      mkdir -p "/home/mint/Documents/LiveLink/$id/$pc/$ct" 
  
  done&lt; XmlDataNew.txt
  </code></pre>