I am trying to make a Bash script that will look in a file for a certain line (IR Freq. = 23.23) and copy the 23.23 from it and send it through serial interface (ttyS0).
IR Freq. = 23.23
The line will move around the file and the number will change a lot!
you can use the below script
grep -r "IR Freq." filename | cut -d '=' -f 2 | sed -e 's/^[[:space:]]*//'