Updated code for line_convert.sh