title: Read file line by line and delete that line
body: <p>I want to read file line by line and parallelly delete those lines.
  For that, I have written this script.</p>
  
  <pre><code>#!/bin/bash
  fielpos="/Desktop/Folder/fiel.txt"
  LineNoCtr=0
  while IFS='' read -r line || [[ -n "$line" ]]; do
          echo "Text read from file: $line"
          LineNoCtr=expr $LineNoCtr + 1
          echo "line no is:$LineNoCtr"
          sed -i "/$LineNoCtr/"'d' $fielpos
          sleep 1
  done &lt; "$fielpos"
  </code></pre>
  
  <p>Is this the correct method?</p>