I have a bash script that finds connected devices and logs the serial port output to a file. I am using getopts to choose the method of logging. Two of the functions are the sam