Bash while loop to truncate file with bad tuplesTo delete bad records from a sorted file based on a counter, implement a streamlined sed command incorporating the variable directly.