linux - Find certain line in file and extract part of it -


i trying make bash script in file line (ir freq. = 23.23) , copy 23.23 , send through serial interface (ttys0).

the line move around file , number change lot!

you can use below script

grep -r "ir freq." filename | cut -d '=' -f 2 | sed -e 's/^[[:space:]]*//'


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -