title: Remove a specific line from a file WITHOUT using sed or awk
body: <p>I need to remove a specific line number from a file using a bash script. </p>
  
  <p>I get the line number from the grep command with the -n option.</p>
  
  <p>I cannot use sed for a variety of reasons, least of which is that it is not installed on all the systems this script needs to run on and installing it is not an option.</p>
  
  <p>awk is out of the question because in testing, on different machines with different UNIX/Linux OS's (RHEL, SunOS, Solaris, Ubuntu, etc.), it gives (sometimes wildly) different results on each. So, no awk.</p>
  
  <p>The file in question is just a flat text file, with one record per line, so nothing fancy needs to be done, except for remove the line by number.</p>
  
  <p>If at all possible, I need to avoid doing something like extracting the contents of the file, not including the line I want gone, and then overwriting the original file.</p>