Today, i will discuss about the “How to remove extra delimiters in a file” using shell script. Below is the content of the file. a|b||c d||e|||f Post execution of shell script, the output will be a|b|c d|e|f Below is the script which is created to remove extra delimiter in a file. #file is assigned to variable INPUT . Here we used two files text1.txt and text2.txt to manipulate the source file data. INPUT=”Path of the file”/file.txt #Truncating text1.txt. Make sure this file exists. >text1.txt #Reading character by character using while…